ACF_Local_JSON::delete_internal_post_type
Deletes an ACF JSON file.
Метод класса: ACF_Local_JSON{}
Хуков нет.
Возвращает
true|false
.
Использование
$ACF_Local_JSON = new ACF_Local_JSON(); $ACF_Local_JSON->delete_internal_post_type( $post );
- $post(массив) (обязательный)
- The main ACF post array.
Список изменений
С версии 6.1 | Введена. |
Код ACF_Local_JSON::delete_internal_post_type() ACF Local JSON::delete internal post type ACF 6.4.2
public function delete_internal_post_type( $post ) { if ( ! $this->is_enabled() ) { return false; } // WP appends '__trashed' to the end of 'key' (post_name). $key = str_replace( '__trashed', '', $post['key'] ); return $this->delete_file( $key, $post ); }