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 3101 to 3150 of 4125 functions (Page 63 of 83)
check_comment_flood_db()

Hooks WP's native database-based comment-flood check.

wp_check_comment_flood()

Checks whether comment flooding is occurring.

$is_flood $ip $email +2 more
separate_comments()

Separates an array of comments into an array keyed by comment_type.

$comments
get_comment_pages_count()

Calculates the total number of comment pages.

$comments $per_page $threaded
get_page_of_comment()

Calculates what page number a comment will appear on for comment paging.

$comment_id $args
wp_get_comment_fields_max_lengths()

Retrieves the maximum character lengths for the comment form fields.

wp_check_comment_data_max_lengths()

Compares the lengths of comment data against the maximum character limits.

$comment_data
wp_check_comment_data()

Checks whether comment data passes internal checks or has disallowed content.

$comment_data
wp_check_comment_disallowed_list()

Checks if a comment contains disallowed characters or words.

$author $email $url +3 more
wp_count_comments()

Retrieves the total comment counts for the whole site or a single post.

$post_id
wp_delete_comment()

Trashes or deletes a comment.

$comment_id $force_delete
wp_trash_comment()

Moves a comment to the Trash

$comment_id
wp_untrash_comment()

Removes a comment from the Trash

$comment_id
wp_spam_comment()

Marks a comment as Spam.

$comment_id
wp_unspam_comment()

Removes a comment from the Spam.

$comment_id
wp_get_comment_status()

Retrieves the status of a comment by comment ID.

$comment_id
wp_transition_comment_status()

Calls hooks for when a comment status transition occurs.

$new_status $old_status $comment
_clear_modified_cache_on_transition_comment_status()

Clears the lastcommentmodified cached value when a comment status is changed.

$new_status $old_status
wp_get_current_commenter()

Gets current commenter's name, email, and URL.

wp_get_unapproved_comment_author_email()

Gets unapproved comment author's email.

wp_insert_comment()

Inserts a comment into the database.

$commentdata
wp_filter_comment()

Filters and sanitizes comment data.

$commentdata
wp_throttle_comment_flood()

Determines whether a comment should be blocked because of comment flood.

$block $time_lastcomment $time_newcomment
wp_new_comment()

Adds a new comment to the database.

$commentdata $wp_error
wp_new_comment_notify_moderator()

Sends a comment moderation notification to the comment moderator.

$comment_id
wp_new_comment_notify_postauthor()

Sends a notification of a new comment to the post author.

$comment_id
wp_set_comment_status()

Sets the status of a comment.

$comment_id $comment_status $wp_error
wp_update_comment()

Updates an existing comment in the database.

$commentarr $wp_error
wp_defer_comment_counting()

Determines whether to defer comment counting.

$defer
wp_update_comment_count()

Updates the comment count for post(s).

$post_id $do_deferred
wp_update_comment_count_now()

Updates the comment count for the post.

$post_id
discover_pingback_server_uri()

Finds a pingback server URI based on the given URL.

$url $deprecated
do_all_pings()

Performs all pingbacks, enclosures, trackbacks, and sends to pingback services.

do_all_pingbacks()

Performs all pingbacks.

do_all_enclosures()

Performs all enclosures.

do_all_trackbacks()

Performs all trackbacks.

do_trackbacks()

Performs trackbacks.

$post
generic_ping()

Sends pings to all of the ping site services.

$post_id
pingback()

Pings back the links found in a post.

$content $post
privacy_ping_filter()

Checks whether blog is public before returning sites.

$sites
trackback()

Sends a Trackback.

$trackback_url $title $excerpt +1 more
weblog_ping()

Sends a pingback.

$server $path
pingback_ping_source_uri()

Default filter attached to pingback_ping_source_uri to validate the pingback's Source URI.

$source_uri
xmlrpc_pingback_error()

Default filter attached to xmlrpc_pingback_error.

$ixr_error
clean_comment_cache()

Removes a comment from the object cache.

$ids
update_comment_cache()

Updates the comment cache of given comments.

$comments $update_meta_cache
_prime_comment_caches()

Adds any comments from the given IDs to the cache that do not already exist in cache.

$comment_ids $update_meta_cache
_close_comments_for_old_posts()

Closes comments on old posts on the fly, without any extra DB queries. Hooked to the_posts.

$posts $query
_close_comments_for_old_post()

Closes comments on an old post. Hooked to comments_open and pings_open.

$open $post_id
wp_handle_comment_submission()

Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form.

$comment_data