WP_Async_Request::get_post_args()

Get post args


Return Return

(array)


Top ↑

Source Source

File: vendor/deliciousbrains/wp-background-processing/classes/wp-async-request.php

136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
protected function get_post_args() {
    if ( property_exists( $this, 'post_args' ) ) {
        return $this->post_args;
    }
 
    $args = array(
        'timeout'   => 0.01,
        'blocking'  => false,
        'body'      => $this->data,
        'cookies'   => $_COOKIE,
        'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
    );
 
    /**
     * Filters the post arguments used during an async request.
     *
     * @param array $args
     */
    return apply_filters( $this->identifier . '_post_args', $args );
}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.