[ Index ] |
PHP Cross Reference of GlotPress |
[Source view] [Print] [Project Stats]
Defines GlotPress rewrite rules and query vars.
File Size: | 110 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
gp_generate_rewrite_rules( $gp_base = false ) X-Ref |
Generate the WP rewrite rules. return: array Rewrite rules that transform the URL structure since: 1.0.0 param: string|bool $gp_base Optional. The base of all GlotPress URLs. |
gp_rewrite_rules() X-Ref |
Add WP rewrite rules to avoid WP thinking that GP pages are 404. since: 1.0.0 |
gp_query_vars( $query_vars ) X-Ref |
Query vars for GP rewrite rules since: 1.0.0 |
gp_run_route() X-Ref |
GP run route since: 1.0.0 |
is_glotpress() X-Ref |
Determine if the page requested is handled by GlotPress. return: bool Whether the request is handled by GlotPress. since: 1.0.0 |
gp_set_is_home_false( $query ) X-Ref |
Sets `WP_Query->is_home` to false during GlotPress requests. since: 1.0.0 param: WP_Query $query The WP_Query instance. |
Generated: Thu Nov 21 01:01:07 2024 | Cross-referenced by PHPXref 0.7.1 |