[ 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' );
  38  
  39  // Display filters.
  40  add_filter( 'gp_original_extracted_comments', 'esc_translation' );
  41  add_filter( 'gp_original_extracted_comments', 'wptexturize' );
  42  add_filter( 'gp_original_extracted_comments', 'convert_chars' );
  43  add_filter( 'gp_original_extracted_comments', 'make_clickable' );
  44  add_filter( 'gp_original_extracted_comments', 'convert_smilies' );
  45  
  46  add_filter( 'gp_project_description', 'wptexturize' );
  47  add_filter( 'gp_project_description', 'convert_chars' );
  48  add_filter( 'gp_project_description', 'make_clickable' );
  49  add_filter( 'gp_project_description', 'force_balance_tags' );
  50  add_filter( 'gp_project_description', 'convert_smilies' );
  51  add_filter( 'gp_project_description', 'wpautop' );
  52  add_filter( 'gp_project_description', 'wp_kses_post' );
  53  
  54  add_filter( 'gp_glossary_description', 'wptexturize' );
  55  add_filter( 'gp_glossary_description', 'convert_chars' );
  56  add_filter( 'gp_glossary_description', 'make_clickable' );
  57  add_filter( 'gp_glossary_description', 'force_balance_tags' );
  58  add_filter( 'gp_glossary_description', 'convert_smilies' );
  59  add_filter( 'gp_glossary_description', 'wpautop' );
  60  add_filter( 'gp_glossary_description', 'wp_kses_post' );
  61  
  62  add_filter( 'gp_title', 'wptexturize' );
  63  add_filter( 'gp_title', 'convert_chars' );
  64  add_filter( 'gp_title', 'esc_html' );
  65  
  66  // Memory limit
  67  add_filter( 'gp_translations_import_memory_limit', 'gp_set_translations_import_max_memory_limit' );


Generated: Fri Apr 26 01:01:24 2024 Cross-referenced by PHPXref 0.7.1