WPDev.one
Core PHP Functions

Functions Reference

4125+ PHP functions available in the WordPress global namespace. Complete documentation with parameters, return values, and usage examples.

Showing 2301 to 2350 of 4125 functions (Page 47 of 83)
set_user_setting()

Adds or updates user interface setting.

$name $value
delete_user_setting()

Deletes user interface settings.

$names
get_all_user_settings()

Retrieves all user interface settings.

wp_set_all_user_settings()

Private. Sets all user interface settings.

$user_settings
delete_all_user_settings()

Deletes the user settings of the current user.

get_site_option()

Retrieve an option value for the current network based on name of option.

$option $default_value $deprecated
add_site_option()

Adds a new option for the current network.

$option $value
delete_site_option()

Removes an option by name for the current network.

$option
update_site_option()

Updates the value of an option that was already added for the current network.

$option $value
get_network_option()

Retrieves a network's option value based on the option name.

$network_id $option $default_value
add_network_option()

Adds a new network option.

$network_id $option $value
delete_network_option()

Removes a network option by name.

$network_id $option
update_network_option()

Updates the value of a network option that was already added.

$network_id $option $value
delete_site_transient()

Deletes a site transient.

$transient
get_site_transient()

Retrieves the value of a site transient.

$transient
set_site_transient()

Sets/updates the value of a site transient.

$transient $value $expiration
register_initial_settings()

Registers default settings available in WordPress.

register_setting()

Registers a setting and its data.

$option_group $option_name $args
unregister_setting()

Unregisters a setting.

$option_group $option_name $deprecated
get_registered_settings()

Retrieves an array of registered settings.

filter_default_option()

Filters the default value for the option.

$default_value $option $passed_default
wp_autoload_values_to_autoload()

Returns the values that trigger autoloading from the options table.

add_filter()

Adds a callback function to a filter hook.

$hook_name $callback $priority +1 more
apply_filters()

Calls the callback functions that have been added to a filter hook.

$hook_name $value $args
apply_filters_ref_array()

Calls the callback functions that have been added to a filter hook, specifying arguments in an array.

$hook_name $args
has_filter()

Checks if any filter has been registered for a hook.

$hook_name $callback
remove_filter()

Removes a callback function from a filter hook.

$hook_name $callback $priority
remove_all_filters()

Removes all of the callback functions from a filter hook.

$hook_name $priority
current_filter()

Retrieves the name of the current filter hook.

doing_filter()

Returns whether or not a filter hook is currently being processed.

$hook_name
did_filter()

Retrieves the number of times a filter has been applied during the current request.

$hook_name
add_action()

Adds a callback function to an action hook.

$hook_name $callback $priority +1 more
do_action()

Calls the callback functions that have been added to an action hook.

$hook_name $arg
do_action_ref_array()

Calls the callback functions that have been added to an action hook, specifying arguments in an array.

$hook_name $args
has_action()

Checks if any action has been registered for a hook.

$hook_name $callback
remove_action()

Removes a callback function from an action hook.

$hook_name $callback $priority
remove_all_actions()

Removes all of the callback functions from an action hook.

$hook_name $priority
current_action()

Retrieves the name of the current action hook.

doing_action()

Returns whether or not an action hook is currently being processed.

$hook_name
did_action()

Retrieves the number of times an action has been fired during the current request.

$hook_name
apply_filters_deprecated()

Fires functions attached to a deprecated filter hook.

$hook_name $args $version +2 more
do_action_deprecated()

Fires functions attached to a deprecated action hook.

$hook_name $args $version +2 more
plugin_basename()

Gets the basename of a plugin.

$file
wp_register_plugin_realpath()

Register a plugin's real path.

$file
plugin_dir_path()

Get the filesystem directory path (with trailing slash) for the plugin __FILE__ passed in.

$file
plugin_dir_url()

Get the URL directory path (with trailing slash) for the plugin __FILE__ passed in.

$file
register_activation_hook()

Set the activation hook for a plugin.

$file $callback
register_deactivation_hook()

Sets the deactivation hook for a plugin.

$file $callback
register_uninstall_hook()

Sets the uninstallation hook for a plugin.

$file $callback
_wp_call_all_hook()

Calls the 'all' hook, which will process the functions hooked into it.

$args