[ Index ] |
WordPress Cross Reference |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 709 lines (21 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
WP:: (10 methods):
add_query_var()
set_query_var()
parse_request()
send_headers()
build_query_string()
register_globals()
init()
query_posts()
handle_404()
main()
WP_MatchesMapRegex:: (4 methods):
WP_MatchesMapRegex()
apply()
_map()
callback()
add_query_var($qv) X-Ref |
Add name to list of public query variables. param: string $qv Query variable name. |
set_query_var($key, $value) X-Ref |
Set the value of a query variable. param: string $key Query variable name. param: mixed $value Query variable value. |
parse_request($extra_query_vars = '') X-Ref |
Parse request to find 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. param: array|string $extra_query_vars Set the extra query variables. |
send_headers() X-Ref |
Send additional HTTP headers for caching, content type, etc. Sets the X-Pingback header, 404 status (if 404), Content-type. If showing a feed, it will also send last-modified, etag, and 304 status if needed. |
build_query_string() X-Ref |
Sets the query string property based off of the query variable property. The 'query_string' filter is deprecated, but still works. Plugins should use the 'request' filter instead. |
register_globals() X-Ref |
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. |
init() X-Ref |
Set up the current user. |
query_posts() X-Ref |
Set up the Loop based on the query variables. |
handle_404() X-Ref |
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. |
main($query_args = '') X-Ref |
Sets up all of the variables required by the WordPress environment. The action 'wp' has one parameter that references the WP object. It allows for accessing the properties and methods to further manipulate the object. param: string|array $query_args Passed to {@link parse_request()} |
Class: WP_MatchesMapRegex - X-Ref
Helper class to remove the need to use eval to replace $matches[] in query strings.WP_MatchesMapRegex($subject, $matches) X-Ref |
constructor param: string $subject subject if regex param: array $matches data to use in map return: self |
apply($subject, $matches) X-Ref |
Substitute substring matches in subject. static helper function to ease use param: string $subject subject param: array $matches data used for substitution return: string |
_map() X-Ref |
do the actual mapping return: string |
callback($matches) X-Ref |
preg_replace_callback hook param: array $matches preg_replace regexp matches return: string |
Generated: Tue Mar 25 01:41:18 2014 | WordPress honlapkészítés: online1.hu |