[ Index ] |
PHP Cross Reference of GlotPress |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 81 lines (2 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
gp_set_globals( $vars ) X-Ref |
Makes all key/value pairs in $vars global variables |
gp_init() X-Ref |
Initializes rewrite rules and provides the 'gp_init' action. since: 1.0.0 |
gp_parse_request() X-Ref |
Fires during the WP parse_request hook to check to see if we're on a GlotPress page, if so we can abort the main WP_Query logic as we won't need it in GlotPress. a matching page. since: 1.0.0 |
gp_abort_main_wp_query( $sql, WP_Query $wp_query ) X-Ref |
Prevents executing WP_Query's default queries on GlotPress requests. The following code effectively avoid running the main WP_Query queries by setting values before they are run. return: string|false False if GlotPress request, SQL query if not. since: 1.0.0 param: array $sql The complete SQL query. param: WP_Query $wp_query The WP_Query instance (passed by reference). |
gp_delete_user_permissions( $user_id ) X-Ref |
Deletes user's permissions when they are deleted from WordPress via WP's 'deleted_user' action. since: 1.0.0 |
Generated: Thu Nov 21 01:01:07 2024 | Cross-referenced by PHPXref 0.7.1 |