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 1451 to 1500 of 4125 functions (Page 30 of 83)
wp_setup_widgets_block_editor()

Enables the widgets block editor. This is hooked into 'after_setup_theme' so

wp_use_widgets_block_editor()

Determines whether or not to use the block editor to manage widgets.

wp_parse_widget_id()

Converts a widget ID into its id_base and number components.

$id
wp_find_widgets_sidebar()

Finds the sidebar that a given widget belongs to.

$widget_id
wp_assign_widget_to_sidebar()

Assigns a widget to the given sidebar.

$widget_id $sidebar_id
wp_render_widget()

Calls the render callback of a widget and returns the output.

$widget_id $sidebar_id
wp_render_widget_control()

Calls the control callback of a widget and returns the output.

$id
wp_check_widget_editor_deps()

Displays a _doing_it_wrong() message for conflicting widget editor scripts.

_wp_block_theme_register_classic_sidebars()

Registers the previous theme's sidebars for the block themes.

get_comment_author()

Retrieves the author of the current comment.

$comment_id
comment_author()

Displays the author of the current comment.

$comment_id
get_comment_author_email()

Retrieves the email of the author of the current comment.

$comment_id
comment_author_email()

Displays the email of the author of the current global $comment.

$comment_id
comment_author_email_link()

Displays the HTML email link to the author of the current comment.

$link_text $before $after +1 more
get_comment_author_email_link()

Returns the HTML email link to the author of the current comment.

$link_text $before $after +1 more
get_comment_author_link()

Retrieves the HTML link to the URL of the author of the current comment.

$comment_id
comment_author_link()

Displays the HTML link to the URL of the author of the current comment.

$comment_id
get_comment_author_IP()

Retrieves the IP address of the author of the current comment.

$comment_id
comment_author_IP()

Displays the IP address of the author of the current comment.

$comment_id
get_comment_author_url()

Retrieves the URL of the author of the current comment, not linked.

$comment_id
comment_author_url()

Displays the URL of the author of the current comment, not linked.

$comment_id
get_comment_author_url_link()

Retrieves the HTML link of the URL of the author of the current comment.

$link_text $before $after +1 more
comment_author_url_link()

Displays the HTML link of the URL of the author of the current comment.

$link_text $before $after +1 more
comment_class()

Generates semantic classes for each comment element.

$css_class $comment $post +1 more
get_comment_class()

Returns the classes for the comment div as an array.

$css_class $comment_id $post
get_comment_date()

Retrieves the comment date of the current comment.

$format $comment_id
comment_date()

Displays the comment date of the current comment.

$format $comment_id
get_comment_excerpt()

Retrieves the excerpt of the given comment.

$comment_id
comment_excerpt()

Displays the excerpt of the current comment.

$comment_id
get_comment_ID()

Retrieves the comment ID of the current comment.

comment_ID()

Displays the comment ID of the current comment.

get_comment_link()

Retrieves the link to a given comment.

$comment $args
get_comments_link()

Retrieves the link to the current post comments.

$post
comments_link()

Displays the link to the current post comments.

$deprecated $deprecated_2
get_comments_number()

Retrieves the amount of comments a post has.

$post
comments_number()

Displays the language string for the number of comments the current post has.

$zero $one $more +1 more
get_comments_number_text()

Displays the language string for the number of comments the current post has.

$zero $one $more +1 more
get_comment_text()

Retrieves the text of the current comment.

$comment_id $args
comment_text()

Displays the text of the current comment.

$comment_id $args
get_comment_time()

Retrieves the comment time of the current comment.

$format $gmt $translate +1 more
comment_time()

Displays the comment time of the current comment.

$format $comment_id
get_comment_type()

Retrieves the comment type of the current comment.

$comment_id
comment_type()

Displays the comment type of the current comment.

$commenttxt $trackbacktxt $pingbacktxt
get_trackback_url()

Retrieves the current post's trackback URL.

trackback_url()

Displays the current post's trackback URL.

$deprecated_echo
trackback_rdf()

Generates and displays the RDF for the trackback information of current post.

$deprecated
comments_open()

Determines whether the current post is open for comments.

$post
pings_open()

Determines whether the current post is open for pings.

$post
wp_comment_form_unfiltered_html_nonce()

Displays form token for unfiltered comments.

comments_template()

Loads the comment template specified in $file.

$file $separate_comments