WP_Async_Request::get_query_args()

Get query args


Return Return

(array)


Top ↑

Source Source

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

93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
protected function get_query_args() {
    if ( property_exists( $this, 'query_args' ) ) {
        return $this->query_args;
    }
 
    $args = array(
        'action' => $this->identifier,
        'nonce'  => wp_create_nonce( $this->identifier ),
    );
 
    /**
     * Filters the post arguments used during an async request.
     *
     * @param array $url
     */
    return apply_filters( $this->identifier . '_query_args', $args );
}

Top ↑

User Contributed Notes User Contributed Notes

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