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 | |
| /** | |
| * Checks if post status is new | |
| */ | |
| add_action( 'transition_post_status', 'post_unpublished', 10, 3 ); | |
| function post_unpublished( $new_status, $old_status, $post ) { | |
| if ( $old_status == 'new' ) { | |
| // do stuff for new post | |
| } |
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 | |
| /** | |
| * Reversed Pagination for WordPress - proof of concept | |
| * | |
| * WARNING! Not suitable for use on a live website! | |
| * | |
| * Proof of concept for reversed pagination as discussed here | |
| * http://nerd.vasilis.nl/problem-paginated-archive-pages-blogs/ | |
| * and here (Dutch) | |
| * http://wasstra.at/035/ |
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
| excluded files | |
| 'wp-includes/class-snoopy.php', | |
| 'wp-includes/class-simplepie.php', | |
| 'wp-includes/class-IXR.php', | |
| 'wp-includes/class-phpass.php', | |
| 'wp-includes/class-phpmailer.php', | |
| 'wp-includes/class-pop3.php', | |
| 'wp-includes/class-json.php', | |
| 'wp-includes/class-smtp.php', | |
| 'wp-admin/includes/class-pclzip.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
| Processing file 427 of 479 "wp-includes/query.php". | |
| Updated function "get_query_var" | |
| Updated function "get_queried_object" | |
| Updated function "get_queried_object_id" | |
| Updated function "set_query_var" | |
| Updated function "query_posts" | |
| Updated function "wp_reset_query" | |
| Updated function "wp_reset_postdata" | |
| Updated function "is_archive" | |
| Updated function "is_post_type_archive" |
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 | |
| add_filter( 'attachment_fields_to_edit', 'km_attachment_text_link_field', 10, 2 ); | |
| function km_attachment_text_link_field( $form_fields, $post ) { | |
| $form_fields['km-text-link'] = array( | |
| 'label' => 'Text Link', | |
| 'input' => 'text', | |
| 'value' => '', | |
| 'helps' => 'If Text Link is provided, the image will be linked from a text link', |
OlderNewer