Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\TypeSafePostTypeRepository::set_supported_post_types PHP Method

set_supported_post_types() public method

Sets post type support to the given post types.
Since: 3.0.0
public set_supported_post_types ( array $post_types ) : boolean
$post_types array Post type slugs.
return boolean Whether the support for all given post types was set successfully.
    public function set_supported_post_types(array $post_types)
    {
        $settings = $this->get_settings();
        $settings[PostTypeRepository::SETTINGS_KEY] = $post_types;
        return update_site_option(PostTypeRepository::OPTION, $settings);
    }