akismet_request_args

akismet_request_args

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('akismet_request_args') is found 13 times:

  • /wp-content/plugins/akismet/class.akismet-admin.php line 882
    			'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 905
    				'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 934
    			),
    			$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 155
    			'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 283
    			'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 344
    			'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 113
     
    		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 129
    			'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 154
    			'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 327
    		 *
    		 * @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 790
     
    		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 972
    		if ( ! is_null( $post ) ) {
    			$comment['comment_post_modified_gmt'] = $post->post_modified_gmt;
    		}
    
    		$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 1039
    		if ( ! is_null( $post ) ) {
    			$comment['comment_post_modified_gmt'] = $post->post_modified_gmt;
    		}
    
    		$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'] ) {
    
akismet_request_args - WordPress Hooks

akismet_request_args

akismet_request_args

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: akismet.5.3.1

apply_filters('akismet_request_args') is found 13 times:

  • /class.akismet-admin.php line 860
    			'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] );
    
  • /class.akismet-admin.php line 883
    				'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] );
    			}
    
  • /class.akismet-admin.php line 905
    			),
    			$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] );
    
    
  • /class.akismet-cli.php line 155
    			'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' ) );
    		}
    
  • /class.akismet-rest-api.php line 273
    			'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] );
    		}
    
  • /class.akismet-rest-api.php line 334
    			'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;
    		}
    
  • /class.akismet.php line 113
     
    		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];
    		}
    
    
  • /class.akismet.php line 129
    			'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.
    
  • /class.akismet.php line 154
    			'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';
    
    
  • /class.akismet.php line 312
    		 *
    		 * @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 );
    
  • /class.akismet.php line 750
     
    		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];
    		}
    
  • /class.akismet.php line 914
    		if ( ! is_null( $post ) ) {
    			$comment->comment_post_modified_gmt = $post->post_modified_gmt;
    		}
    
    		$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 ) {
    
  • /class.akismet.php line 974
    		if ( ! is_null( $post ) ) {
    			$comment->comment_post_modified_gmt = $post->post_modified_gmt;
    		}
    
    		$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 ) {