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 151 to 200 of 4125 functions (Page 4 of 83)
taxonomy_meta_box_sanitize_cb_input()

Sanitizes POST values from an input taxonomy metabox.

$taxonomy $terms
get_block_editor_server_block_settings()

Prepares server-registered blocks for the block editor.

the_block_editor_meta_boxes()

Renders the meta boxes forms.

the_block_editor_meta_box_post_form_hidden_fields()

Renders the hidden form required for the meta boxes form.

$post
_disable_block_editor_for_navigation_post_type()

Disables block editor for wp_navigation type posts so they can be managed via the UI.

$value $post_type
_disable_content_editor_for_navigation_post_type()

This callback disables the content editor for wp_navigation type posts.

$post
_enable_content_editor_for_navigation_post_type()

This callback enables content editor for wp_navigation type posts.

$post
PclZipUtilPathReduction()
$p_dir
PclZipUtilPathInclusion()
$p_dir $p_path
PclZipUtilCopyBlock()
$p_src $p_dest $p_size +1 more
PclZipUtilRename()
$p_src $p_dest
PclZipUtilOptionText()
$p_option
PclZipUtilTranslateWinPath()
$p_path $p_remove_disk_letter
get_file_description()

Gets the description for standard WordPress theme files.

$file
get_home_path()

Gets the absolute filesystem path to the root of the WordPress installation.

list_files()

Returns a listing of all files in the specified folder and all subdirectories up to 100 levels deep.

$folder $levels $exclusions +1 more
wp_get_plugin_file_editable_extensions()

Gets the list of file extensions that are editable in plugins.

$plugin
wp_get_theme_file_editable_extensions()

Gets the list of file extensions that are editable for a given theme.

$theme
wp_print_file_editor_templates()

Prints file editor templates (for plugins and themes).

wp_edit_theme_plugin_file()

Attempts to edit a file for a theme or plugin.

$args
wp_tempnam()

Returns a filename of a temporary unique file.

$filename $dir
validate_file_to_edit()

Makes sure that the file that was requested to be edited is allowed to be edited.

$file $allowed_files
wp_handle_upload_error()
$file $message
_wp_handle_upload()

Handles PHP uploads in WordPress.

$file $overrides $time +1 more
wp_handle_upload()

Wrapper for _wp_handle_upload().

$file $overrides $time
wp_handle_sideload()

Wrapper for _wp_handle_upload().

$file $overrides $time
download_url()

Downloads a URL to a local temporary file using the WordPress HTTP API.

$url $timeout $signature_verification
verify_file_md5()

Calculates and compares the MD5 of a file to its expected value.

$filename $expected_md5
verify_file_signature()

Verifies the contents of a file against its ED25519 signature.

$filename $signatures $filename_for_errors
wp_trusted_keys()

Retrieves the list of signing keys trusted by WordPress.

wp_zip_file_is_valid()

Determines whether the given file is a valid ZIP file.

$file
unzip_file()

Unzips a specified ZIP file to a location on the filesystem via the WordPress

$file $to
_unzip_file_ziparchive()

Attempts to unzip an archive using the ZipArchive class.

$file $to $needed_dirs
_unzip_file_pclzip()

Attempts to unzip an archive using the PclZip library.

$file $to $needed_dirs
copy_dir()

Copies a directory from one location to another via the WordPress Filesystem

$from $to $skip_list
move_dir()

Moves a directory from one location to another.

$from $to $overwrite
WP_Filesystem()

Initializes and connects the WordPress Filesystem Abstraction classes.

$args $context $allow_relaxed_file_ownership
get_filesystem_method()

Determines which method to use for reading, writing, modifying, or deleting

$args $context $allow_relaxed_file_ownership
request_filesystem_credentials()

Displays a form to the user to request for their FTP/SSH details in order

$form_post $type $error +3 more
wp_print_request_filesystem_credentials_modal()

Prints the filesystem credentials modal when needed.

wp_opcache_invalidate()

Attempts to clear the opcode cache for an individual PHP file.

$filepath $force
wp_opcache_invalidate_directory()

Attempts to clear the opcode cache for a directory of files.

$dir
wxr_cdata()

Wraps given string in XML CDATA tag.

$str
wxr_site_url()

Returns the URL of the site.

wxr_cat_name()

Outputs a cat_name XML tag from a given category object.

$category
wxr_category_description()

Outputs a category_description XML tag from a given category object.

$category
wxr_tag_name()

Outputs a tag_name XML tag from a given tag object.

$tag
wxr_tag_description()

Outputs a tag_description XML tag from a given tag object.

$tag
wxr_term_name()

Outputs a term_name XML tag from a given term object.

$term
wxr_term_description()

Outputs a term_description XML tag from a given term object.

$term