[ Index ]

PHP Cross Reference of GlotPress




/gp-includes/ -> rewrite.php (summary)

Defines GlotPress rewrite rules and query vars.

File Size: 112 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions


Functions that are not part of a class:

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: Sat Jan 25 01:02:02 2020 Cross-referenced by PHPXref 0.7.1