WP_Post_Type::remove_supports
Removes the features support for the post type.
Метод класса: WP_Post_Type{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_Post_Type = new WP_Post_Type(); $WP_Post_Type->remove_supports();
Заметки
- Global. Массив. $_wp_post_type_features Post type features.
Список изменений
| С версии 4.6.0 | Введена. |
Код WP_Post_Type::remove_supports() WP Post Type::remove supports WP 6.8.3
public function remove_supports() {
global $_wp_post_type_features;
unset( $_wp_post_type_features[ $this->name ] );
}