1 | <?php |
||
20 | trait WithRequestPostAttributes { |
||
21 | /** |
||
22 | * Returns the post type read from `$_REQUEST['post_type']` if any, or a default post type. |
||
23 | * |
||
24 | * @since TBD |
||
25 | * |
||
26 | * @param string $default The default post type to return if none is specified in the `$_REQUEST` super-global. |
||
27 | * |
||
28 | * @return string Either the post type read from the `$_REQUEST` super-global, or the default value. |
||
29 | */ |
||
30 | protected function read_post_type_from_request( $default = 'post' ) { |
||
37 | } |
||
38 |