acf_duplicate_post_type()
Duplicates an ACF post type.
Хуков нет.
Возвращает
Массив|true|false
. The new ACF post type, or false on failure.
Использование
acf_duplicate_post_type( $id, $new_post_id );
- $id(int|строка)
- The ACF post type ID, key or name.
- $new_post_id(int)
- Optional ID to override.
Список изменений
С версии 6.1 | Введена. |
Код acf_duplicate_post_type() acf duplicate post type ACF 6.4.2
function acf_duplicate_post_type( $id = 0, $new_post_id = 0 ) { return acf_duplicate_internal_post_type( $id, $new_post_id, 'acf-post-type' ); }