akismet_get_api_key

akismet_get_api_key

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('akismet_get_api_key') is found 1 times:

  • /wp-content/plugins/akismet/class.akismet.php line 131
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
        add_action( 'comment_form_after', array( 'Akismet', 'display_comment_form_privacy_notice' ) );
    }
     
    public static function get_api_key() {
        return apply_filters( 'akismet_get_api_key', defined( 'WPCOM_API_KEY' ) ? constant( 'WPCOM_API_KEY' ) : get_option( 'wordpress_api_key' ) );
    }
     
    /**
     * Exchange the API key for a token that can only be used to access stats pages.
     *
     * @return string