You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described in your docs here, it states that you can modify built in PTs using this package.
But in the PostType class, we encounter the following code which clearly makes this impossible:
publicfunctionregisterPostType()
{
// create options for the PostType$options = $this->createOptions();
// check that the post type doesn't already existif (!post_type_exists($this->name)) {
// register the post typeregister_post_type($this->name, $options);
}
}
It would be great if this could work again! Until it does, could you please remove it from the docs.
I tried using register_post_type_args to modify the post built in, but to no real luck - the post types are initially declared in wp-settings@347, which is before functions.php has been loaded.
I know we can modify built-ins through entirely different means such as modifying the global $wp_post_types, but that's all I got
The text was updated successfully, but these errors were encountered:
As described in your docs here, it states that you can modify built in PTs using this package.
But in the
PostType
class, we encounter the following code which clearly makes this impossible:It would be great if this could work again! Until it does, could you please remove it from the docs.
I tried using
register_post_type_args
to modify thepost
built in, but to no real luck - the post types are initially declared inwp-settings@347
, which is before functions.php has been loaded.I know we can modify built-ins through entirely different means such as modifying the global
$wp_post_types
, but that's all I gotThe text was updated successfully, but these errors were encountered: