- 
                Notifications
    You must be signed in to change notification settings 
- Fork 83
http_request_args
        github-actions[bot] edited this page Oct 6, 2025 
        ·
        1 revision
      
    /**
 * 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' );- 
array$string_list
\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',
				)
// ...Follow @[email protected] for updates and news.