Created
May 25, 2012 14:32
-
-
Save billerickson/2788446 to your computer and use it in GitHub Desktop.
Old Post Notification - Display Elsewhere
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 | |
// Remove notification from 'the_content' | |
add_filter( 'old_post_notification_on_content', '__return_false' ); | |
/** | |
* Add notification to 'genesis_before_post_content' | |
* | |
* Uses the 'old_post_notification_display' filter which displays the notification. | |
* It's wrapped in a function and then placed where needed. | |
* Alternatively, you could just put this in your template file: | |
* echo apply_filters( 'old_post_notification_display', '' ); | |
*/ | |
function be_old_notification() { | |
echo apply_filters( 'old_post_notification_display', '' ); | |
} | |
add_action( 'genesis_before_post_content', 'be_old_notification' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment