acf_update_internal_post_type()
Updates a internal post type in the database.
Хуков нет.
Возвращает
Массив.
Использование
acf_update_internal_post_type( $internal_post_type, $post_type_name );
- $internal_post_type(массив) (обязательный)
- Array of data to be saved.
- $post_type_name(строка) (обязательный)
- The internal post type being updated.
Список изменений
| С версии 6.1 | Введена. |
Код acf_update_internal_post_type() acf update internal post type ACF 6.4.2
function acf_update_internal_post_type( $internal_post_type, $post_type_name ) {
$instance = acf_get_internal_post_type_instance( $post_type_name );
if ( $instance ) {
$internal_post_type = $instance->update_post( $internal_post_type );
}
return $internal_post_type;
}