akismet_request_args
akismet_request_args
Appears in: akismet.5.3.1, akismet.5.3.2, akismet.5.3.3, akismet.5.3.5, akismet.5.3.7, wordpress-6.4.3, wordpress-6.5, wordpress-6.5.2, wordpress-6.5.3, wordpress-6.5.4, wordpress-6.5.5, wordpress-6.6, wordpress-6.6.1, wordpress-6.6.2, wordpress-6.7, wordpress-6.7.1, wordpress-6.7.2, wordpress-6.8
Hook Type: filter
Displaying hooks found in version: wordpress-6.8apply_filters('akismet_request_args') is found 13 times:
- /wp-content/plugins/akismet/class.akismet-admin.php line 976972973974975976977978979980981982
'key'
=>
$api_key
,
'blog'
=> get_option(
'home'
),
);
$request_args
= apply_filters(
'akismet_request_args'
,
$request_args
,
'get-subscription'
);
$subscription_verification
= Akismet::http_post( Akismet::build_query(
$request_args
),
'get-subscription'
);
if
( !
empty
(
$subscription_verification
[1] ) ) {
if
(
'invalid'
!==
$subscription_verification
[1] ) {
$akismet_user
= json_decode(
$subscription_verification
[1] );
- /wp-content/plugins/akismet/class.akismet-admin.php line 99909950996099709980999100010011002100310041005
'key'
=>
$api_key
,
'from'
=>
$interval
,
);
$request_args
= apply_filters(
'akismet_request_args'
,
$request_args
,
'get-stats'
);
$response
= Akismet::http_post( Akismet::build_query(
$request_args
),
'get-stats'
);
if
( !
empty
(
$response
[1] ) ) {
$data
= json_decode(
$response
[1] );
/*
- /wp-content/plugins/akismet/class.akismet-admin.php line 102810241025102610271028102910301031103210331034
),
$extra
);
$request_args
= apply_filters(
'akismet_request_args'
,
$request_args
,
'verify-wpcom-key'
);
$akismet_account
= Akismet::http_post( Akismet::build_query(
$request_args
),
'verify-wpcom-key'
);
if
( !
empty
(
$akismet_account
[1] ) ) {
$akismet_account
= json_decode(
$akismet_account
[1] );
}
- /wp-content/plugins/akismet/class.akismet-cli.php line 156152153154155156157158159160161162
'key'
=>
$api_key
,
'from'
=>
$interval
,
);
$request_args
= apply_filters(
'akismet_request_args'
,
$request_args
,
'get-stats'
);
$response
= Akismet::http_post( Akismet::build_query(
$request_args
),
'get-stats'
);
if
(
empty
(
$response
[1] ) ) {
WP_CLI::error( __(
'Currently unable to fetch stats. Please try again.'
,
'akismet'
) );
}
- /wp-content/plugins/akismet/class.akismet-rest-api.php line 307303304305306307308309310311312313
'key'
=>
$api_key
,
'from'
=>
$interval
,
);
$request_args
= apply_filters(
'akismet_request_args'
,
$request_args
,
'get-stats'
);
$response
= Akismet::http_post( Akismet::build_query(
$request_args
),
'get-stats'
);
if
( !
empty
(
$response
[1] ) ) {
$stat_totals
[
$interval
] = json_decode(
$response
[1] );
}
- /wp-content/plugins/akismet/class.akismet-rest-api.php line 370366367368369370371372373374375376
'key'
=>
$key
,
'blog'
=> get_option(
'home'
),
);
$request_args
= apply_filters(
'akismet_request_args'
,
$request_args
,
'verify-key'
);
$response
= Akismet::http_post( Akismet::build_query(
$request_args
),
'verify-key'
);
if
(
$response
[1] ==
'valid'
) {
return
true;
}
- /wp-content/plugins/akismet/class.akismet.php line 145142143144145146147148149150
if
(
is_null
(
$access_token
) ) {
$request_args
=
array
(
'api_key'
=> self::get_api_key() );
$request_args
= apply_filters(
'akismet_request_args'
,
$request_args
,
'token'
);
$response
= self::http_post( self::build_query(
$request_args
),
'token'
);
$access_token
=
$response
[1];
}
- /wp-content/plugins/akismet/class.akismet.php line 161157158159160161162163164165166167
'key'
=>
$key
,
'blog'
=> get_option(
'home'
),
);
$request_args
= apply_filters(
'akismet_request_args'
,
$request_args
,
'verify-key'
);
return
self::http_post( self::build_query(
$request_args
),
'verify-key'
,
$ip
);
}
public
static
function
verify_key(
$key
,
$ip
= null ) {
// Shortcut for obviously invalid keys.
- /wp-content/plugins/akismet/class.akismet.php line 187183184185186187188189190191192193
'key'
=>
$key
,
'blog'
=> get_option(
'home'
),
);
$request_args
= apply_filters(
'akismet_request_args'
,
$request_args
,
'deactivate'
);
$response
= self::http_post( self::build_query(
$request_args
),
'deactivate'
);
if
(
$response
[1] !=
'deactivated'
) {
return
'failed'
;
}
- /wp-content/plugins/akismet/class.akismet.php line 375371372373374375376377378379380381
*
* @param
array
$comment
An
array
of request data.
* @param string
$endpoint
The API endpoint being requested.
*/
$comment
= apply_filters(
'akismet_request_args'
,
$comment
,
'comment-check'
);
$response
= self::http_post( self::build_query(
$comment
),
'comment-check'
);
do_action(
'akismet_comment_check_response'
,
$response
);
$commentdata
[
'comment_as_submitted'
] =
array_intersect_key
(
$comment
, self::
$comment_as_submitted_allowed_keys
);
- /wp-content/plugins/akismet/class.akismet.php line 831827828829830831832833834835836837
if
( self::is_test_mode() ) {
$c
[
'is_test'
] =
'true'
;
}
$c
= apply_filters(
'akismet_request_args'
,
$c
,
'comment-check'
);
$response
= self::http_post( self::build_query(
$c
),
'comment-check'
);
if
( !
empty
(
$response
[1] ) ) {
return
$response
[1];
}
- /wp-content/plugins/akismet/class.akismet.php line 101710131014101510161017101810191020102110221023
}
$comment
[
'comment_check_response'
] = self::last_comment_check_response(
$comment_id
);
$comment
= apply_filters(
'akismet_request_args'
,
$comment
,
'submit-spam'
);
$response
= self::http_post( self::build_query(
$comment
),
'submit-spam'
);
update_comment_meta(
$comment_id
,
'akismet_user_result'
,
'true'
);
if
(
$comment
[
'reporter'
] ) {
- /wp-content/plugins/akismet/class.akismet.php line 108610821083108410851086108710881089109010911092
}
$comment
[
'comment_check_response'
] = self::last_comment_check_response(
$comment_id
);
$comment
= apply_filters(
'akismet_request_args'
,
$comment
,
'submit-ham'
);
$response
= self::http_post( self::build_query(
$comment
),
'submit-ham'
);
update_comment_meta(
$comment_id
,
'akismet_user_result'
,
'false'
);
if
(
$comment
[
'reporter'
] ) {