Changeset 30545 for trunk/src/wp-includes/rewrite.php
- Timestamp:
- 11/24/2014 06:14:03 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rewrite.php
r29788 r30545 227 227 * places specified by the provided bitmask. For example: 228 228 * 229 * <code> 230 * add_rewrite_endpoint( 'json', EP_PERMALINK | EP_PAGES ); 231 * </code> 229 * add_rewrite_endpoint( 'json', EP_PERMALINK | EP_PAGES ); 232 230 * 233 231 * will add a new rewrite rule ending with "json(/(.*))?/?$" for every permastruct 234 232 * that describes a permalink (post) or page. This is rewritten to "json=$match" 235 233 * where $match is the part of the URL matched by the endpoint regex (e.g. "foo" in 236 * " <permalink>/json/foo/").234 * "[permalink]/json/foo/"). 237 235 * 238 236 * A new query var with the same name as the endpoint will also be created. … … 240 238 * When specifying $places ensure that you are using the EP_* constants (or a 241 239 * combination of them using the bitwise OR operator) as their values are not 242 * guaranteed to remain static (especially EP_ALL).243 * 244 * Be sure to flush the rewrite rules - flush_rewrite_rules()- when your plugin gets240 * guaranteed to remain static (especially `EP_ALL`). 241 * 242 * Be sure to flush the rewrite rules - {@see flush_rewrite_rules()} - when your plugin gets 245 243 * activated and deactivated. 246 244 *
Note: See TracChangeset
for help on using the changeset viewer.