Skip to content

http_request_args

github-actions[bot] edited this page Oct 6, 2025 · 1 revision

Auto-generated Example

/**
 * Callback function for the 'http_request_args' filter.
 *
 * @param array $string_list 
 * @return array The filtered value.
 */
function my_http_request_args_callback( array $string_list ) {
    // Your code here.
    return $string_list;
}
add_filter( 'http_request_args', 'my_http_request_args_callback' );

Parameters

  • array $string_list

Files

\apply_filters(
			'http_request_args',
			array(
				'method'      => 'POST',
				'body'        => '{"type":"Create","actor":"https://example.org/author/admin","object":{"type":"Note","content":"Test content."}}',
				'key_id'      => 'https://example.org/author/admin#main-key',
				'private_key' => Actors::get_private_key( 1 ),
				'headers'     => array(
// ...
\apply_filters(
			'http_request_args',
			array(
				'method'      => 'POST',
				'body'        => '{"type":"Create","actor":"https://example.org/author/admin","object":{"type":"Note","content":"Test content."}}',
				'headers'     => array(
					'Date' => \gmdate( 'D, d M Y H:i:s T' ),
					'Host' => 'example.org',
				)
// ...

← All Hooks

Users

Developers

Clone this wiki locally