WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 3855 | wp_schedule_single_event( time() + ( 2 * MINUTE_IN_SECONDS ), 'wp_update_comment_type_batch' ); |
| 3856 | |
| 3857 | /** |
| 3858 | * Filters the comment batch size for updating the comment type. |
| 3859 | * |
| 3860 | * @since 5.5.0 |
| 3861 | * |
| 3862 | * @param int $comment_batch_size The comment batch size. Default 100. |
| 3863 | */ |
| 3864 | $comment_batch_size = (int) apply_filters( 'wp_update_comment_type_batch_size', 100 ); |
| 3865 | |
| 3866 | // Get the IDs of the comments to update. |
| 3867 | $comment_ids = $wpdb->get_col( |
| 3868 | $wpdb->prepare( |
| 3869 | "SELECT comment_ID |
| 3870 | FROM {$wpdb->comments} |
| 3871 | WHERE comment_type = '' |
| 3872 | ORDER BY comment_ID DESC |
| 3873 | LIMIT %d", |