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 651 to 700 of 4125 functions (Page 14 of 83)
get_post_states()

Retrieves an array of post states from a post.

$post
_media_states()

Outputs the attachment media states as HTML.

$post $display
get_media_states()

Retrieves an array of media states from an attachment.

$post
compression_test()

Tests support for compressing JavaScript from PHP.

submit_button()

Echoes a submit button, with provided text and appropriate class(es).

$text $type $name +2 more
get_submit_button()

Returns a submit button, with provided text and appropriate class.

$text $type $name +2 more
_wp_admin_html_begin()

Prints out the beginning of the admin HTML header.

convert_to_screen()

Converts a screen string to a screen object.

$hook_name
_local_storage_notice()

Outputs the HTML for restoring the post data from DOM storage

wp_star_rating()

Outputs a HTML element with a star rating for a given rating.

$args
_wp_posts_page_notice()

Outputs a notice when editing the page for posts (internal use only).

_wp_block_editor_posts_page_notice()

Outputs a notice when editing the page for posts in the block editor (internal use only).

media_upload_tabs()

Defines the default media upload tabs.

update_gallery_tab()

Adds the gallery tab back to the tabs array if post has image attachments.

$tabs
the_media_upload_tabs()

Outputs the legacy media upload tabs UI.

get_image_send_to_editor()

Retrieves the image HTML to send to the editor.

$id $caption $title +5 more
image_add_caption()

Adds image shortcode with caption to editor.

$html $id $caption +5 more
_cleanup_image_add_caption()

Private preg_replace callback used in image_add_caption().

$matches
media_send_to_editor()

Adds image HTML to editor.

$html
media_handle_upload()

Saves a file submitted from a POST request and create an attachment post for it.

$file_id $post_id $post_data +1 more
media_handle_sideload()

Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload().

$file_array $post_id $desc +1 more
wp_iframe()

Outputs the iframe to display the media upload page.

$content_func $args
media_buttons()

Adds the media button to the editor.

$editor_id
get_upload_iframe_src()

Retrieves the upload iframe source URL.

$type $post_id $tab
media_upload_form_handler()

Handles form submissions for the legacy media uploader.

wp_media_upload_handler()

Handles the process of uploading media.

media_sideload_image()

Downloads an image from the specified URL, saves it as an attachment, and optionally attaches it to a post.

$file $post_id $desc +1 more
media_upload_gallery()

Retrieves the legacy media uploader form in an iframe.

media_upload_library()

Retrieves the legacy media library form in an iframe.

image_align_input_fields()

Retrieves HTML for the image alignment radio buttons with the specified one checked.

$post $checked
image_size_input_fields()

Retrieves HTML for the size radio buttons with the specified one checked.

$post $check
image_link_input_fields()

Retrieves HTML for the Link URL buttons with the default link type as specified.

$post $url_type
wp_caption_input_textarea()

Outputs a textarea element for inputting an attachment caption.

$edit_post
image_attachment_fields_to_edit()

Retrieves the image attachment fields to edit form fields.

$form_fields $post
media_single_attachment_fields_to_edit()

Retrieves the single non-image attachment fields to edit form fields.

$form_fields $post
media_post_single_attachment_fields_to_edit()

Retrieves the post non-image attachment fields to edit form fields.

$form_fields $post
image_media_send_to_editor()

Retrieves the media element HTML to send to the editor.

$html $attachment_id $attachment
get_attachment_fields_to_edit()

Retrieves the attachment fields to edit form fields.

$post $errors
get_media_items()

Retrieves HTML for media items of post gallery.

$post_id $errors
get_media_item()

Retrieves HTML form for modifying the image attachment.

$attachment_id $args
get_compat_media_markup()
$attachment_id $args
media_upload_header()

Outputs the legacy media upload header.

media_upload_form()

Outputs the legacy media upload form.

$errors
media_upload_type_form()

Outputs the legacy media upload form for a given media type.

$type $errors $id
media_upload_type_url_form()

Outputs the legacy media upload form for external media.

$type $errors $id
media_upload_gallery_form()

Adds gallery form to upload iframe.

$errors
media_upload_library_form()

Outputs the legacy media upload form for the media library.

$errors
wp_media_insert_url_form()

Creates the form for external url.

$default_view
media_upload_flash_bypass()

Displays the multi-file uploader message.

media_upload_html_bypass()

Displays the browser's built-in uploader message.