[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

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

(no description)

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

Defines 6 functions

  gp_urldecode_deep()
  gp_set_globals()
  gp_init()
  gp_parse_request()
  gp_abort_main_wp_query()
  gp_delete_user_permissions()

Functions
Functions that are not part of a class:

gp_urldecode_deep($value)   X-Ref
No description

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.
param: array    $sql  The complete SQL query.
param: WP_Query $wp_query The WP_Query instance (passed by reference).
since: 1.0.0

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: Sat Aug 17 01:01:56 2019 Cross-referenced by PHPXref 0.7.1