IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 991 | 991 | // Sanitize post type name |
| 992 | 992 | $post_type = sanitize_key( $post_type ); |
| 993 | 993 | |
| 994 | | if ( empty( $args['_builtin'] ) ) { |
| 995 | | /** |
| 996 | | * Filter the arguments for registering a post type. |
| 997 | | * |
| 998 | | * Not available for built-in post types. |
| 999 | | * |
| 1000 | | * @since 4.4.0 |
| 1001 | | * |
| 1002 | | * @param array|string $args Array or string of arguments for registering a post type. |
| 1003 | | * @param string $post_type Post type key. |
| 1004 | | */ |
| 1005 | | $args = apply_filters( 'register_post_type_args', $args, $post_type ); |
| 1006 | | } |
| | 994 | /** |
| | 995 | * Filter the arguments for registering a post type. |
| | 996 | * |
| | 997 | * Not available for built-in post types. |
| | 998 | * |
| | 999 | * @since 4.4.0 |
| | 1000 | * |
| | 1001 | * @param array|string $args Array or string of arguments for registering a post type. |
| | 1002 | * @param string $post_type Post type key. |
| | 1003 | */ |
| | 1004 | $args = apply_filters( 'register_post_type_args', $args, $post_type ); |
| 1007 | 1005 | |
| 1008 | 1006 | // Args prefixed with an underscore are reserved for internal use. |
| 1009 | 1007 | $defaults = array( |