Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress give query a unique identity

add_action(
    'pre_get_posts',
    function( $wp_query_obj ) {
        if ( ! empty( $wp_query_obj->query_vars['my_custom_id'] ) ) {
            // ...
        }
    },
    100,
    1
);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #wordpress #give #query #unique #identity
ADD COMMENT
Topic
Name
7+6 =