| [ 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. since: 1.0.0 param: string|bool $gp_base Optional. The base of all GlotPress URLs. return: array Rewrite rules that transform the URL structure |
| 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. since: 1.0.0 return: bool Whether the request is handled by GlotPress. |
| 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: Sun Nov 2 01:01:06 2025 | Cross-referenced by PHPXref 0.7.1 |