Inventory_Presser_Plugin::edit_attachment_post_type( array $args, string $type )
Changes the attachment post type args just before the type is registered.
On This Page
Description Description
Changes hierarchical to true so that <code>parent</code> is exposed in the REST API.
Parameters Parameters
- $args
-
(array) (Required) Array of arguments for registering a post type. See the register_post_type() function for accepted arguments.
- $type
-
(string) (Required) Post type key.
Return Return
(array)
Source Source
File: inventory-presser.php
delete_option( 'rewrite_rules' ); return; } $sites = get_sites( array( 'network' => 1,
Expand full source codeCollapse full source codeView on Github