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 951 to 1000 of 4125 functions (Page 20 of 83)
_jsonp_wp_die_handler()

Kills WordPress execution and displays JSONP response with an error message.

$message $title $args
_xmlrpc_wp_die_handler()

Kills WordPress execution and displays XML response with an error message.

$message $title $args
_xml_wp_die_handler()

Kills WordPress execution and displays XML response with an error message.

$message $title $args
_scalar_wp_die_handler()

Kills WordPress execution and displays an error message.

$message $title $args
_wp_die_process_input()

Processes arguments passed to wp_die() consistently for its handlers.

$message $title $args
wp_json_encode()

Encodes a variable into JSON, with some confidence checks.

$value $flags $depth
_wp_json_sanity_check()

Performs confidence checks on data that shall be encoded to JSON.

$value $depth
_wp_json_convert_string()

Converts a string to UTF-8, so that it can be safely encoded to JSON.

$input_string
_wp_json_prepare_data()

Prepares response data to be serialized to JSON.

$value
wp_send_json()

Sends a JSON response back to an Ajax request.

$response $status_code $flags
wp_send_json_success()

Sends a JSON response back to an Ajax request, indicating success.

$value $status_code $flags
wp_send_json_error()

Sends a JSON response back to an Ajax request, indicating failure.

$value $status_code $flags
wp_check_jsonp_callback()

Checks that a JSONP callback is a valid JavaScript callback name.

$callback
wp_json_file_decode()

Reads and decodes a JSON file.

$filename $options
_config_wp_home()

Retrieves the WordPress home page URL.

$url
_config_wp_siteurl()

Retrieves the WordPress site URL.

$url
_delete_option_fresh_site()

Deletes the fresh site option.

_mce_set_direction()

Sets the localized direction for MCE plugin.

$mce_init
wp_is_serving_rest_request()

Determines whether WordPress is currently serving a REST API request.

smilies_init()

Converts smiley code to the icon graphic file equivalent.

wp_parse_args()

Merges user defined arguments into defaults array.

$args $defaults
wp_parse_list()

Converts a comma- or space-separated list of scalar values to an array.

$input_list
wp_parse_id_list()

Cleans up an array, comma- or space-separated list of IDs.

$input_list
wp_parse_slug_list()

Cleans up an array, comma- or space-separated list of slugs.

$input_list
wp_array_slice_assoc()

Extracts a slice of an array, given a list of keys.

$input_array $keys
wp_recursive_ksort()

Sorts the keys of an array alphabetically.

$input_array
_wp_array_get()

Accesses an array in depth based on a path of keys.

$input_array $path $default_value
_wp_array_set()

Sets an array in depth based on a path of keys.

$input_array $path $value
_wp_to_kebab_case()

This function is trying to replicate what

$input_string
wp_is_numeric_array()

Determines if the variable is a numeric-indexed array.

$data
wp_filter_object_list()

Filters a list of objects, based on a set of key => value arguments.

$input_list $args $operator +1 more
wp_list_filter()

Filters a list of objects, based on a set of key => value arguments.

$input_list $args $operator
wp_list_pluck()

Plucks a certain field out of each object or array in an array.

$input_list $field $index_key
wp_list_sort()

Sorts an array of objects or arrays based on one or more orderby arguments.

$input_list $orderby $order +1 more
wp_maybe_load_widgets()

Determines if Widgets library should be loaded.

wp_widgets_add_menu()

Appends the Widgets menu to the themes main menu.

wp_ob_end_flush_all()

Flushes all output buffers for PHP 5.2.

dead_db()

Loads custom DB error or display WordPress DB error.

_deprecated_function()

Marks a function as deprecated and inform when it has been used.

$function_name $version $replacement
_deprecated_constructor()

Marks a constructor as deprecated and informs when it has been used.

$class_name $version $parent_class
_deprecated_class()

Marks a class as deprecated and informs when it has been used.

$class_name $version $replacement
_deprecated_file()

Marks a file as deprecated and inform when it has been used.

$file $version $replacement +1 more
_deprecated_argument()

Marks a function argument as deprecated and inform when it has been used.

$function_name $version $message
_deprecated_hook()

Marks a deprecated action or filter hook as deprecated and throws a notice.

$hook $version $replacement +1 more
_doing_it_wrong()

Marks something as being incorrectly called.

$function_name $message $version
wp_trigger_error()

Generates a user-level error/warning/notice/deprecation message.

$function_name $message $error_level
is_lighttpd_before_150()

Determines whether the server is running an earlier than 1.5.0 version of lighttpd.

apache_mod_loaded()

Determines whether the specified module exist in the Apache config.

$mod $default_value
iis7_supports_permalinks()

Checks if IIS 7+ supports pretty permalinks.

validate_file()

Validates a file name and path against an allowed set of rules.

$file $allowed_files