$wp WP#4434 (9)
  • Properties (9)
  • Available methods (11)
  • public public_query_vars -> array (132)
    $wp->public_query_vars
    0 => string (1) "m"
    $wp->public_query_vars[0]
    1 => string (1) "p"
    $wp->public_query_vars[1]
    2 => string (5) "posts"
    $wp->public_query_vars[2]
    3 => string (1) "w"
    $wp->public_query_vars[3]
    4 => string (3) "cat"
    $wp->public_query_vars[4]
    5 => string (12) "withcomments"
    $wp->public_query_vars[5]
    6 => string (15) "withoutcomments"
    $wp->public_query_vars[6]
    7 => string (1) "s"
    $wp->public_query_vars[7]
    8 => string (6) "search"
    $wp->public_query_vars[8]
    9 => string (5) "exact"
    $wp->public_query_vars[9]
    10 => string (8) "sentence"
    $wp->public_query_vars[10]
    11 => string (8) "calendar"
    $wp->public_query_vars[11]
    12 => string (4) "page"
    $wp->public_query_vars[12]
    13 => string (5) "paged"
    $wp->public_query_vars[13]
    14 => string (4) "more"
    $wp->public_query_vars[14]
    15 => string (2) "tb"
    $wp->public_query_vars[15]
    16 => string (2) "pb"
    $wp->public_query_vars[16]
    17 => string (6) "author"
    $wp->public_query_vars[17]
    18 => string (5) "order"
    $wp->public_query_vars[18]
    19 => string (7) "orderby"
    $wp->public_query_vars[19]
    20 => string (4) "year"
    $wp->public_query_vars[20]
    21 => string (8) "monthnum"
    $wp->public_query_vars[21]
    22 => string (3) "day"
    $wp->public_query_vars[22]
    23 => string (4) "hour"
    $wp->public_query_vars[23]
    24 => string (6) "minute"
    $wp->public_query_vars[24]
    25 => string (6) "second"
    $wp->public_query_vars[25]
    26 => string (4) "name"
    $wp->public_query_vars[26]
    27 => string (13) "category_name"
    $wp->public_query_vars[27]
    28 => string (3) "tag"
    $wp->public_query_vars[28]
    29 => string (4) "feed"
    $wp->public_query_vars[29]
    30 => string (11) "author_name"
    $wp->public_query_vars[30]
    31 => string (8) "pagename"
    $wp->public_query_vars[31]
    32 => string (7) "page_id"
    $wp->public_query_vars[32]
    33 => string (5) "error"
    $wp->public_query_vars[33]
    34 => string (10) "attachment"
    $wp->public_query_vars[34]
    35 => string (13) "attachment_id"
    $wp->public_query_vars[35]
    36 => string (7) "subpost"
    $wp->public_query_vars[36]
    37 => string (10) "subpost_id"
    $wp->public_query_vars[37]
    38 => string (7) "preview"
    $wp->public_query_vars[38]
    39 => string (6) "robots"
    $wp->public_query_vars[39]
    40 => string (7) "favicon"
    $wp->public_query_vars[40]
    41 => string (8) "taxonomy"
    $wp->public_query_vars[41]
    42 => string (4) "term"
    $wp->public_query_vars[42]
    43 => string (5) "cpage"
    $wp->public_query_vars[43]
    44 => string (9) "post_type"
    $wp->public_query_vars[44]
    45 => string (5) "embed"
    $wp->public_query_vars[45]
    46 => string (13) "tus_shortened"
    $wp->public_query_vars[46]
    47 => string (21) "single_event_template"
    $wp->public_query_vars[47]
    48 => string (10) "event_type"
    $wp->public_query_vars[48]
    49 => string (8) "event_id"
    $wp->public_query_vars[49]
    50 => string (13) "tagup_promote"
    $wp->public_query_vars[50]
    51 => string (10) "watch_game"
    $wp->public_query_vars[51]
    52 => string (11) "post_format"
    $wp->public_query_vars[52]
    53 => string (10) "wpvr_video"
    $wp->public_query_vars[53]
    54 => string (17) "download_category"
    $wp->public_query_vars[54]
    55 => string (12) "download_tag"
    $wp->public_query_vars[55]
    56 => string (16) "article_category"
    $wp->public_query_vars[56]
    57 => string (11) "article_tag"
    $wp->public_query_vars[57]
    58 => string (8) "download"
    $wp->public_query_vars[58]
    59 => string (7) "article"
    $wp->public_query_vars[59]
    60 => string (5) "video"
    $wp->public_query_vars[60]
    61 => string (10) "rest_route"
    $wp->public_query_vars[61]
    62 => string (7) "sitemap"
    $wp->public_query_vars[62]
    63 => string (15) "sitemap-subtype"
    $wp->public_query_vars[63]
    64 => string (18) "sitemap-stylesheet"
    $wp->public_query_vars[64]
    65 => string (9) "tm_report"
    $wp->public_query_vars[65]
    66 => string (10) "ct_channel"
    $wp->public_query_vars[66]
    67 => string (11) "ct_playlist"
    $wp->public_query_vars[67]
    68 => string (18) "easy-pricing-table"
    $wp->public_query_vars[68]
    69 => string (6) "um-api"
    $wp->public_query_vars[69]
    70 => string (9) "wpvr_cron"
    $wp->public_query_vars[70]
    71 => string (17) "wpvr_async_action"
    $wp->public_query_vars[71]
    72 => string (7) "edd-add"
    $wp->public_query_vars[72]
    73 => string (10) "edd-remove"
    $wp->public_query_vars[73]
    74 => string (7) "edd-api"
    $wp->public_query_vars[74]
    75 => string (10) "tus_u_user"
    $wp->public_query_vars[75]
    76 => string (13) "tus_u_section"
    $wp->public_query_vars[76]
    77 => string (16) "tus_u_subsection"
    $wp->public_query_vars[77]
    78 => string (7) "sch_key"
    $wp->public_query_vars[78]
    79 => string (14) "subsite_domain"
    $wp->public_query_vars[79]
    80 => string (12) "subsite_root"
    $wp->public_query_vars[80]
    81 => string (12) "subsite_page"
    $wp->public_query_vars[81]
    82 => string (15) "subsite_subpage"
    $wp->public_query_vars[82]
    83 => string (11) "subsite_tab"
    $wp->public_query_vars[83]
    84 => string (6) "xapi_1"
    $wp->public_query_vars[84]
    85 => string (7) "um_user"
    $wp->public_query_vars[85]
    86 => string (6) "um_tab"
    $wp->public_query_vars[86]
    87 => string (10) "profiletab"
    $wp->public_query_vars[87]
    88 => string (6) "subnav"
    $wp->public_query_vars[88]
    89 => string (7) "um_page"
    $wp->public_query_vars[89]
    90 => string (9) "um_action"
    $wp->public_query_vars[90]
    91 => string (8) "um_field"
    $wp->public_query_vars[91]
    92 => string (7) "um_form"
    $wp->public_query_vars[92]
    93 => string (9) "um_verify"
    $wp->public_query_vars[93]
    94 => string (3) "key"
    $wp->public_query_vars[94]
    95 => string (5) "token"
    $wp->public_query_vars[95]
    96 => string (6) "format"
    $wp->public_query_vars[96]
    97 => string (5) "query"
    $wp->public_query_vars[97]
    98 => string (4) "type"
    $wp->public_query_vars[98]
    99 => string (4) "data"
    $wp->public_query_vars[99]
    100 => string (6) "fields"
    $wp->public_query_vars[100]
    101 => string (5) "value"
    $wp->public_query_vars[101]
    102 => string (6) "number"
    $wp->public_query_vars[102]
    103 => string (2) "id"
    $wp->public_query_vars[103]
    104 => string (5) "email"
    $wp->public_query_vars[104]
    105 => string (7) "orderby"
    $wp->public_query_vars[105]
    106 => string (5) "order"
    $wp->public_query_vars[106]
    107 => string (7) "include"
    $wp->public_query_vars[107]
    108 => string (7) "exclude"
    $wp->public_query_vars[108]
    109 => string (5) "token"
    $wp->public_query_vars[109]
    110 => string (3) "key"
    $wp->public_query_vars[110]
    111 => string (5) "query"
    $wp->public_query_vars[111]
    112 => string (4) "type"
    $wp->public_query_vars[112]
    113 => string (7) "product"
    $wp->public_query_vars[113]
    114 => string (8) "category"
    $wp->public_query_vars[114]
    115 => string (3) "tag"
    $wp->public_query_vars[115]
    116 => string (13) "term_relation"
    $wp->public_query_vars[116]
    117 => string (6) "number"
    $wp->public_query_vars[117]
    118 => string (4) "date"
    $wp->public_query_vars[118]
    119 => string (9) "startdate"
    $wp->public_query_vars[119]
    120 => string (7) "enddate"
    $wp->public_query_vars[120]
    121 => string (8) "customer"
    $wp->public_query_vars[121]
    122 => string (8) "discount"
    $wp->public_query_vars[122]
    123 => string (6) "format"
    $wp->public_query_vars[123]
    124 => string (2) "id"
    $wp->public_query_vars[124]
    125 => string (11) "purchasekey"
    $wp->public_query_vars[125]
    126 => string (5) "email"
    $wp->public_query_vars[126]
    127 => string (4) "info"
    $wp->public_query_vars[127]
    128 => string (11) "include_tax"
    $wp->public_query_vars[128]
    129 => string (9) "review_id"
    $wp->public_query_vars[129]
    130 => string (11) "download_id"
    $wp->public_query_vars[130]
    131 => string (6) "status"
    $wp->public_query_vars[131]
    public private_query_vars -> array (26)
    $wp->private_query_vars
    0 => string (6) "offset"
    $wp->private_query_vars[0]
    1 => string (14) "posts_per_page"
    $wp->private_query_vars[1]
    2 => string (22) "posts_per_archive_page"
    $wp->private_query_vars[2]
    3 => string (9) "showposts"
    $wp->private_query_vars[3]
    4 => string (8) "nopaging"
    $wp->private_query_vars[4]
    5 => string (9) "post_type"
    $wp->private_query_vars[5]
    6 => string (11) "post_status"
    $wp->private_query_vars[6]
    7 => string (12) "category__in"
    $wp->private_query_vars[7]
    8 => string (16) "category__not_in"
    $wp->private_query_vars[8]
    9 => string (13) "category__and"
    $wp->private_query_vars[9]
    10 => string (7) "tag__in"
    $wp->private_query_vars[10]
    11 => string (11) "tag__not_in"
    $wp->private_query_vars[11]
    12 => string (8) "tag__and"
    $wp->private_query_vars[12]
    13 => string (12) "tag_slug__in"
    $wp->private_query_vars[13]
    14 => string (13) "tag_slug__and"
    $wp->private_query_vars[14]
    15 => string (6) "tag_id"
    $wp->private_query_vars[15]
    16 => string (14) "post_mime_type"
    $wp->private_query_vars[16]
    17 => string (4) "perm"
    $wp->private_query_vars[17]
    18 => string (17) "comments_per_page"
    $wp->private_query_vars[18]
    19 => string (8) "post__in"
    $wp->private_query_vars[19]
    20 => string (12) "post__not_in"
    $wp->private_query_vars[20]
    21 => string (11) "post_parent"
    $wp->private_query_vars[21]
    22 => string (15) "post_parent__in"
    $wp->private_query_vars[22]
    23 => string (19) "post_parent__not_in"
    $wp->private_query_vars[23]
    24 => string (5) "title"
    $wp->private_query_vars[24]
    25 => string (6) "fields"
    $wp->private_query_vars[25]
    public extra_query_vars -> array (0)
    $wp->extra_query_vars
    public query_vars -> array (4)
    $wp->query_vars
    page => string (0) ""
    $wp->query_vars['page']
    post_type => string (10) "wpvr_video"
    $wp->query_vars['post_type']
    wpvr_video => string (134) "wasco-diamonds-il-usn-16u-vs-wildcats-ca-premier-laufou-hunter-16u-colorado-...
    $wp->query_vars['wpvr_video']
    wasco-diamonds-il-usn-16u-vs-wildcats-ca-premier-laufou-hunter-16u-colorado-sparkler-%f0%9f%93%85-06-29-22-%e2%8f%b0-1000-am-at-bat-24
    
    name => string (134) "wasco-diamonds-il-usn-16u-vs-wildcats-ca-premier-laufou-hunter-16u-colorado-...
    $wp->query_vars['name']
    wasco-diamonds-il-usn-16u-vs-wildcats-ca-premier-laufou-hunter-16u-colorado-sparkler-%f0%9f%93%85-06-29-22-%e2%8f%b0-1000-am-at-bat-24
    
    public query_string -> string (334) "post_type=wpvr_video&wpvr_video=wasco-diamonds-il-usn-16u-vs-wildcats-ca-pre...
    $wp->query_string
    post_type=wpvr_video&wpvr_video=wasco-diamonds-il-usn-16u-vs-wildcats-ca-premier-laufou-hunter-16u-colorado-sparkler-%25f0%259f%2593%2585-06-29-22-%25e2%258f%25b0-1000-am-at-bat-24&name=wasco-diamonds-il-usn-16u-vs-wildcats-ca-premier-laufou-hunter-16u-colorado-sparkler-%25f0%259f%2593%2585-06-29-22-%25e2%258f%25b0-1000-am-at-bat-24
    
    public request -> string (140) "video/wasco-diamonds-il-usn-16u-vs-wildcats-ca-premier-laufou-hunter-16u-col...
    $wp->request
    video/wasco-diamonds-il-usn-16u-vs-wildcats-ca-premier-laufou-hunter-16u-colorado-sparkler-%f0%9f%93%85-06-29-22-%e2%8f%b0-1000-am-at-bat-24
    
    public matched_rule -> string (32) "(video)/([^/]+)(?:/([0-9]+))?/?$"
    $wp->matched_rule
    public matched_query -> string (197) "post_type=wpvr_video&slug=video&wpvr_video=wasco-diamonds-il-usn-16u-vs-wild...
    $wp->matched_query
    post_type=wpvr_video&slug=video&wpvr_video=wasco-diamonds-il-usn-16u-vs-wildcats-ca-premier-laufou-hunter-16u-colorado-sparkler-%25f0%259f%2593%2585-06-29-22-%25e2%258f%25b0-1000-am-at-bat-24&page=
    
    public did_permalink -> boolean true
    $wp->did_permalink
  • public add_query_var($qv) Adds a query variable to the list of public query variables.
    $wp->add_query_var($qv)
    /**
    * Adds a query variable to the list of public query variables.
    *
    * @since 2.1.0
    *
    * @param string $qv Query variable name.
    */
    
    Defined in <ROOT>/wp-includes/class-wp.php:93
    public remove_query_var($name) Removes a query variable from a list of public query variables.
    $wp->remove_query_var($name)
    /**
    * Removes a query variable from a list of public query variables.
    *
    * @since 4.5.0
    *
    * @param string $name Query variable name.
    */
    
    Defined in <ROOT>/wp-includes/class-wp.php:106
    public set_query_var($key, $value) Sets the value of a query variable.
    $wp->set_query_var($key, $value)
    /**
    * Sets the value of a query variable.
    *
    * @since 2.3.0
    *
    * @param string $key   Query variable name.
    * @param mixed  $value Query variable value.
    */
    
    Defined in <ROOT>/wp-includes/class-wp.php:118
    public parse_request($extra_query_vars = ''): bool Whether the request was parsed. Parses the request to find the correct WordPress query.
    $wp->parse_request($extra_query_vars = '')
    /**
    * Parses the request to find the correct WordPress query.
    *
    * Sets up the query variables based on the request. There are also many
    * filters and actions that can be used to further manipulate the result.
    *
    * @since 2.0.0
    * @since 6.0.0 A return value was added.
    *
    * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    *
    * @param array|string $extra_query_vars Set the extra query variables.
    * @return bool Whether the request was parsed.
    */
    
    Defined in <ROOT>/wp-includes/class-wp.php:136
    public send_headers() Sends additional HTTP headers for caching, content type, etc.
    $wp->send_headers()
    /**
    * Sends additional HTTP headers for caching, content type, etc.
    *
    * Sets the Content-Type header. Sets the 'error' status (if passed) and optionally exits.
    * If showing a feed, it will also send Last-Modified, ETag, and 304 status if needed.
    *
    * @since 2.0.0
    * @since 4.4.0 `X-Pingback` header is added conditionally for single posts that allow pings.
    * @since 6.1.0 Runs after posts have been queried.
    *
    * @global WP_Query $wp_query WordPress Query object.
    */
    
    Defined in <ROOT>/wp-includes/class-wp.php:435
    public build_query_string() Sets the query string property based off of the query variable property.
    $wp->build_query_string()
    /**
    * Sets the query string property based off of the query variable property.
    *
    * The {@see 'query_string'} filter is deprecated, but still works. Plugins should
    * use the {@see 'request'} filter instead.
    *
    * @since 2.0.0
    */
    
    Defined in <ROOT>/wp-includes/class-wp.php:601
    public register_globals() Set up the WordPress Globals.
    $wp->register_globals()
    /**
    * Set up the WordPress Globals.
    *
    * The query_vars property will be extracted to the GLOBALS. So care should
    * be taken when naming global variables that might interfere with the
    * WordPress environment.
    *
    * @since 2.0.0
    *
    * @global WP_Query     $wp_query     WordPress Query object.
    * @global string       $query_string Query string for the loop.
    * @global array        $posts        The found posts.
    * @global WP_Post|null $post         The current post, if available.
    * @global string       $request      The SQL statement for the request.
    * @global int          $more         Only set, if single page or post.
    * @global int          $single       If single page or post. Only set, if single page or post.
    * @global WP_User      $authordata   Only set, if author archive.
    */
    
    Defined in <ROOT>/wp-includes/class-wp.php:654
    public init() Set up the current user.
    $wp->init()
    /**
    * Set up the current user.
    *
    * @since 2.0.0
    */
    
    Defined in <ROOT>/wp-includes/class-wp.php:682
    public query_posts() Set up the Loop based on the query variables.
    $wp->query_posts()
    /**
    * Set up the Loop based on the query variables.
    *
    * @since 2.0.0
    *
    * @global WP_Query $wp_the_query WordPress Query object.
    */
    
    Defined in <ROOT>/wp-includes/class-wp.php:693
    public handle_404() Set the Headers for 404, if nothing is found for requested URL.
    $wp->handle_404()
    /**
    * Set the Headers for 404, if nothing is found for requested URL.
    *
    * Issue a 404 if a request doesn't match any posts and doesn't match any object
    * (e.g. an existing-but-empty category, tag, author) and a 404 was not already issued,
    * and if the request was not a search or the homepage.
    *
    * Otherwise, issue a 200.
    *
    * This sets headers after posts have been queried. handle_404() really means "handle status".
    * By inspecting the result of querying posts, seemingly successful requests can be switched to
    * a 404 so that canonical redirection logic can kick in.
    *
    * @since 2.0.0
    *
    * @global WP_Query $wp_query WordPress Query object.
    */
    
    Defined in <ROOT>/wp-includes/class-wp.php:716
    public main($query_args = '') Sets up all of the variables required by the WordPress environment.
    $wp->main($query_args = '')
    /**
    * Sets up all of the variables required by the WordPress environment.
    *
    * The action {@see 'wp'} has one parameter that references the WP object. It
    * allows for accessing the properties and methods to further manipulate the
    * object.
    *
    * @since 2.0.0
    *
    * @param string|array $query_args Passed to parse_request().
    */
    
    Defined in <ROOT>/wp-includes/class-wp.php:810