This file contains hidden or 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 |
This file contains hidden or 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 | |
| /** | |
| * Return canned body content for invalid http requests | |
| * | |
| * @see WP_Http::request() | |
| * | |
| * @param array $response The http response. | |
| * @param array $args An array of arguments. | |
| * @param string $url The request URL. | |
| * |
This file contains hidden or 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 | |
| /** | |
| * 'Members Only' title for protected posts | |
| * | |
| * @see get_the_title() | |
| * | |
| * @param string $protected Text prefixed to the title for password-protected posts. | |
| * | |
| * @return string The filtered prefix text. | |
| */ |
This file contains hidden or 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 | |
| /** | |
| * Inject a post template into the post editor | |
| * | |
| * @see _WP_Editors::editor(), wp_editor() | |
| * | |
| * @param string $content The editor content. | |
| * | |
| * @return string The filtered editor content. | |
| */ |
This file contains hidden or 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 | |
| /** | |
| * Convert double-spaced sentence endings to singles | |
| * | |
| * @param string $content The post content. | |
| * | |
| * @return string The filtered post content. | |
| */ | |
| function wpdocs_double_spaces_to_singles( $content ) { | |
| // Replaces '. ' with '. ' |
This file contains hidden or 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 | |
| /** | |
| * Return a "front page's" real permalink | |
| * | |
| * @param string $link The page permalink. | |
| * @param int $page_id The page id. | |
| * @param bool $sample Whether to return a sample permalink. | |
| * | |
| * @return string The filtered permalink. | |
| */ |
This file contains hidden or 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 | |
| /** | |
| * This filter has no example yet. | |
| * Have an idea for one? Fork this gist | |
| * and comment back with the link. | |
| */ |
This file contains hidden or 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 | |
| /** | |
| * Replace link description with last-edited date and time | |
| * | |
| * @see sanitize_bookmark_field() | |
| * | |
| * @param string $value The original link description. | |
| * | |
| * @return string The last-edited date and time. | |
| */ |