query_vars, $this->public_query_vars
query_vars, $this->public_query_vars
Appears in: 7.0.3
Hook Type: filter
Displaying hooks found in version: 7.0.3apply_filters('query_vars, $this->public_query_vars') is found 1 times:
- /wp-includes/class-wp.php line 311
* @since 1.5.0 * * @param string[] $public_query_vars The array of allowed query variable names. */ $this->public_query_vars = apply_filters( 'query_vars', $this->public_query_vars ); foreach ( get_post_types( array(), 'objects' ) as $post_type => $t ) { if ( is_post_type_viewable( $t ) && $t->query_var ) { $post_type_query_vars[ $t->query_var ] = $post_type; } }