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 2951 to 3000 of 4125 functions (Page 60 of 83)
wp_maybe_enqueue_oembed_host_js()

Enqueue the wp-embed script if the provided oEmbed HTML contains a post embed.

$html
get_post_embed_url()

Retrieves the URL to embed a specific post in an iframe.

$post
get_oembed_endpoint_url()

Retrieves the oEmbed endpoint URL for a given permalink.

$permalink $format
get_post_embed_html()

Retrieves the embed code for a specific post.

$width $height $post
get_oembed_response_data()

Retrieves the oEmbed response data for a given post.

$post $width
get_oembed_response_data_for_url()

Retrieves the oEmbed response data for a given URL.

$url $args
get_oembed_response_data_rich()

Filters the oEmbed response data to return an iframe embed code.

$data $post $width +1 more
wp_oembed_ensure_format()

Ensures that the specified format is either 'json' or 'xml'.

$format
_oembed_rest_pre_serve_request()

Hooks into the REST API output to print XML instead of JSON.

$served $result $request +1 more
_oembed_create_xml()

Creates an XML string from a given array.

$data $node
wp_filter_oembed_iframe_title_attribute()

Filters the given oEmbed HTML to make sure iframes have a title attribute.

$result $data $url
wp_filter_oembed_result()

Filters the given oEmbed HTML.

$result $data $url
wp_embed_excerpt_more()

Filters the string in the 'more' link displayed after a trimmed excerpt.

$more_string
the_excerpt_embed()

Displays the post excerpt for the embed template.

wp_embed_excerpt_attachment()

Filters the post excerpt for the embed template.

$content
enqueue_embed_scripts()

Enqueues embed iframe default CSS and JS.

wp_enqueue_embed_styles()

Enqueues the CSS in the embed iframe header.

print_embed_scripts()

Prints the JavaScript in the embed iframe header.

_oembed_filter_feed_content()

Prepare the oembed HTML to be displayed in an RSS feed.

$content
print_embed_comments_button()

Prints the necessary markup for the embed comments button.

print_embed_sharing_button()

Prints the necessary markup for the embed sharing button.

print_embed_sharing_dialog()

Prints the necessary markup for the embed sharing dialog.

the_embed_site_title()

Prints the necessary markup for the site title in an embed template.

wp_filter_pre_oembed_result()

Filters the oEmbed result before any HTTP requests are made.

$result $url $args
wp_schedule_single_event()

Schedules an event to run only once.

$timestamp $hook $args +1 more
wp_schedule_event()

Schedules a recurring event.

$timestamp $recurrence $hook +2 more
wp_reschedule_event()

Reschedules a recurring event.

$timestamp $recurrence $hook +2 more
wp_unschedule_event()

Unschedules a previously scheduled event.

$timestamp $hook $args +1 more
wp_clear_scheduled_hook()

Unschedules all events attached to the hook with the specified arguments.

$hook $args $wp_error
wp_unschedule_hook()

Unschedules all events attached to the hook.

$hook $wp_error
wp_get_scheduled_event()

Retrieves a scheduled event.

$hook $args $timestamp
wp_next_scheduled()

Retrieves the timestamp of the next scheduled event for the given hook.

$hook $args
spawn_cron()

Sends a request to run cron through HTTP request that doesn't halt page loading.

$gmt_time
wp_cron()

Registers _wp_cron() to run on the {@see 'wp_loaded'} action.

_wp_cron()

Runs scheduled callbacks or spawns cron for all scheduled events.

wp_get_schedules()

Retrieves supported event recurrence schedules.

wp_get_schedule()

Retrieves the name of the recurrence schedule for an event.

$hook $args
wp_get_ready_cron_jobs()

Retrieves cron jobs ready to be run.

_get_cron_array()

Retrieves cron info array option.

_set_cron_array()

Updates the cron option with the new cron array.

$cron $wp_error
_upgrade_cron_array()

Upgrades a cron info array.

$cron
wp_print_font_faces()

Generates and prints font-face styles for given fonts or theme.json fonts.

$fonts
wp_print_font_faces_from_style_variations()

Generates and prints font-face styles defined the the theme style variations.

wp_register_font_collection()

Registers a new font collection in the font library.

$slug $args
wp_unregister_font_collection()

Unregisters a font collection from the Font Library.

$slug
wp_get_font_dir()

Retrieves font uploads directory information.

wp_font_dir()

Returns an array containing the current fonts upload directory's path and URL.

$create_dir
_wp_filter_font_directory()

A callback function for use in the {@see 'upload_dir'} filter.

$font_dir
_wp_after_delete_font_family()

Deletes child font faces when a font family is deleted.

$post_id $post
_wp_before_delete_font_face()

Deletes associated font files when a font face is deleted.

$post_id $post