PluginProbe
Front End PM / trunk
Front End PM vtrunk
trunk 1.1 1.2 1.3 10.1.1 10.1.2 10.1.3 10.1.4 10.1.5 10.1.6 10.1.7 10.2.1 11.1.1 11.2.1 11.2.2 11.2.3 11.3.1 11.3.3 11.3.4 11.3.5 11.3.6 11.3.7 11.3.8 11.3.9 11.4.1 All 58 releases
front-end-pm / default-hooks.php

default-hooks.php in Front End PM trunk, at default-hooks.php

63 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly.
4 }
5
6 add_action( 'plugins_loaded', 'fep_register_metadata_table', 15 );
7 add_action( 'plugins_loaded', 'fep_create_database', 20 );
8
9 add_action( 'after_setup_theme', 'fep_include_require_files' );
10 add_action( 'after_setup_theme', 'fep_translation' );
11 add_action( 'wp_enqueue_scripts', 'fep_enqueue_scripts' );
12 add_action( 'wp_enqueue_scripts', 'fep_common_scripts' );
13 add_action( 'admin_enqueue_scripts', 'fep_common_scripts' );
14
15 add_action( 'wp_head', 'fep_notification_div', 99 );
16 add_action( 'fep_footer_note', 'fep_footer_credit' );
17 add_action( 'template_redirect','fep_auth_redirect', 99 );
18 add_filter( 'auth_redirect_scheme', 'fep_auth_redirect_scheme' );
19
20 add_filter( 'document_title_parts', 'fep_show_unread_count_in_title', 999 );
21 add_filter( 'pre_get_document_title', 'fep_pre_get_document_title', 999 );
22
23 add_filter( 'fep_pre_save_mgs_title', 'wp_strip_all_tags' );
24 //add_filter( 'fep_pre_save_mgs_title', 'trim' );
25
26 add_filter( 'fep_pre_save_mgs_content', 'convert_invalid_entities' );
27 //add_filter( 'fep_pre_save_mgs_content', 'wp_targeted_link_rel' );
28 add_filter( 'fep_pre_save_mgs_content', 'wp_kses_post' );
29 add_filter( 'fep_pre_save_mgs_content', 'balanceTags', 50 );
30
31 add_filter( 'fep_pre_save_mgs_last_reply_excerpt', 'convert_invalid_entities' );
32 //add_filter( 'fep_pre_save_mgs_last_reply_excerpt', 'wp_targeted_link_rel' );
33 add_filter( 'fep_pre_save_mgs_last_reply_excerpt', 'wp_kses_post' );
34 add_filter( 'fep_pre_save_mgs_last_reply_excerpt', 'balanceTags', 50 );
35
36 add_filter( 'fep_pre_save_mgs_type', 'sanitize_key' );
37 add_filter( 'fep_pre_save_mgs_status', 'sanitize_key' );
38
39 add_filter( 'fep_filter_message_before_send', 'fep_backticker_code_input_filter', 5 );
40 add_action( 'wp_loaded', 'fep_form_posted', 20 ); //After Email hook
41 add_action( 'fep_transition_post_status', 'fep_delete_counts_cache', 10, 3);
42 add_action( 'fep_transition_post_status', 'fep_send_message_transition_post_status', 10, 3);
43
44 // Display filters
45 add_filter( 'fep_get_the_title', 'wptexturize' );
46 add_filter( 'fep_get_the_title', 'convert_chars' );
47 add_filter( 'fep_get_the_title', 'trim' );
48
49 global $wp_embed;
50 add_filter( 'fep_get_the_content', array( $wp_embed, 'run_shortcode' ), 8 );
51 add_filter( 'fep_get_the_content', array( $wp_embed, 'autoembed'), 8 );
52 add_filter( 'fep_get_the_content', 'wptexturize' );
53 add_filter( 'fep_get_the_content', 'convert_smilies', 20 );
54 add_filter( 'fep_get_the_content', 'wpautop' );
55 add_filter( 'fep_get_the_content', 'shortcode_unautop' );
56
57 add_filter( 'fep_get_the_excerpt', 'wptexturize' );
58 add_filter( 'fep_get_the_excerpt', 'convert_smilies' );
59 add_filter( 'fep_get_the_excerpt', 'convert_chars' );
60
61 add_filter( 'fep_get_the_date', 'fep_format_date' );
62
63