This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hide the Pending comments status link | |
* | |
* @see WP_Comments_List_Table::get_views() | |
* | |
* @param array $status_links An array of comment stati links. | |
* | |
* @return array The filtered comments stati links array. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Increase comments-per-page limit when viewing spam comments | |
* | |
* @see WP_Comments_List_Table::get_per_page(), WP_Screen::render_per_page_options() | |
* | |
* @param int $comments_per_page The number of comments to list per page. | |
* @param string $comment_status The current comment status view. Default is 'all'. | |
* | |
* @return int The filtered number of comments to list per page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// No example yet. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Example 'Marco, Polo' Heartbeat data received filter. | |
* | |
* Based on an original Gist by Jason Coleman (https://gist.github.com/strangerstudios/5888123) | |
* | |
* @see wp_ajax_heartbeat() | |
* | |
* @param array|object $response The response object. | |
* @param array $data An array of $_POST data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add data-type attribute to video links sent to the editor | |
* | |
* @param string $html The link HTML sent to the editor. | |
* @param string $src The media item source URL. | |
* @param string $title The media item title. | |
* | |
* @return string The link embed HTML markup. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Disallow inserting 'full' sizes images into the editor. | |
* | |
* @see wp_ajax_send_attachment_to_editor(), media_upload_form_handler() | |
* | |
* @param string $html The unslashed HTML to send to the editor. | |
* @param in $id The attachment id. | |
* @param array $attachment An array of attachment attributes. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Save custom attachment meta | |
* | |
* @see wp_ajax_save_attachment_compat(), media_upload_form_handler(), edit_post() | |
* | |
* @param array $post The attachment attributes. | |
* @param array $attachment_data An array of attachment fields. | |
* | |
* @return array The attachment attributes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Extend post lock interval to 2.5 minutes. | |
* | |
* @see wp_ajax_wp_remove_post_lock(), wp_check_post_lock() | |
* | |
* @param int $duration The post lock window interval. | |
* | |
* @return int The filtered interval. | |
*/ |
NewerOlder