Last active
August 29, 2015 14:22
-
-
Save samholguin/67700353fccf9f2b08b4 to your computer and use it in GitHub Desktop.
WordPress - Action [ the_post ] - Modify the WordPress post object
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
/** | |
* Modify the WordPress post object | |
* | |
* @param obj $post_object | |
* @return obj | |
*/ | |
function shgist_my_the_post_action( $post_object ) { | |
// modify post object here | |
} | |
add_action( 'the_post', 'shgist_my_the_post_action' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment