[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-includes/ -> default-filters.php (source)

   1  <?php
   2  /**
   3   * Sets up the default filters and actions for most
   4   * of the GlotPress hooks.
   5   *
   6   * If you need to remove a default hook, this file will
   7   * give you the priority to use for removing the hook.
   8   *
   9   * @package GlotPress
  10   */
  11  
  12  // Actions
  13  add_action( 'init', 'gp_init' );
  14  
  15  // WP
  16  add_action( 'parse_request', 'gp_parse_request' );
  17  
  18  // Styles and scripts
  19  add_action( 'gp_head', 'wp_enqueue_scripts' );
  20  add_action( 'gp_head', 'gp_print_styles' );
  21  add_action( 'gp_head', 'gp_print_scripts' );
  22  
  23  // Rewrite rules
  24  add_filter( 'query_vars', 'gp_query_vars' );
  25  add_action( 'template_redirect', 'gp_run_route' );
  26  
  27  // Users
  28  add_action( 'deleted_user', 'gp_delete_user_permissions' );
  29  
  30  // Query
  31  add_action( 'pre_get_posts', 'gp_set_is_home_false' );
  32  
  33  // WordPress profile options
  34  add_action( 'show_user_profile', 'gp_wp_profile_options' );
  35  add_action( 'edit_user_profile', 'gp_wp_profile_options' );
  36  add_action( 'personal_options_update', 'gp_wp_profile_options_update' );
  37  add_action( 'edit_user_profile_update', 'gp_wp_profile_options_update' );


Generated: Tue Mar 19 01:01:50 2019 Cross-referenced by PHPXref 0.7.1