Created
May 31, 2014 01:18
-
-
Save wpsmith/0c5a1d497eb5738309f6 to your computer and use it in GitHub Desktop.
pre_get_posts error
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_action( 'pre_get_posts', 'prefix_test_get_queried_object' ); | |
function prefix_test_get_queried_object( $query ) { | |
$id = $query->get_queried_object_id(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment