WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
47 | // Run this early in the pingback call, before doing a remote fetch of the source uri |
48 | add_action( 'xmlrpc_call', array( 'Akismet', 'pre_check_pingback' ) ); |
49 | |
50 | // Jetpack compatibility |
51 | add_filter( 'jetpack_options_whitelist', array( 'Akismet', 'add_to_jetpack_options_whitelist' ) ); |
52 | add_action( 'update_option_wordpress_api_key', array( 'Akismet', 'updated_option' ), 10, 2 ); |
53 | } |
54 |
|
55 | public static function get_api_key() { |
56 | return apply_filters( 'akismet_get_api_key', defined('WPCOM_API_KEY') ? constant('WPCOM_API_KEY') : get_option('wordpress_api_key') ); |
57 | } |
58 |
|
59 | public static function check_key_status( $key, $ip = null ) { |
60 | return self::http_post( Akismet::build_query( array( 'key' => $key, 'blog' => get_option( 'home' ) ) ), 'verify-key', $ip ); |
61 | } |
62 |
|
63 | public static function verify_key( $key, $ip = null ) { |
64 | $response = self::check_key_status( $key, $ip ); |
65 |
|