Retrieves parameters from the route itself.
Description
These are parsed from the URL using the regex.
Source
// Exclude rest_route if pretty permalinks are not enabled.
if ( ! get_option( 'permalink_structure' ) ) {
unset( $params['rest_route'] );
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
Return a custom field with featured the image html and set image size based on URL params: