acf_get_internal_post_type_edit_link()
Checks if the current user can edit the field group and returns the edit url.
Хуков нет.
Возвращает
Строку.
Использование
acf_get_internal_post_type_edit_link( $post_id, $post_type );
- $post_id(int) (обязательный)
- The ACF post ID.
- $post_type(строка) (обязательный)
- The ACF post type to get the edit link for.
Список изменений
| С версии 6.1 | Введена. |
Код acf_get_internal_post_type_edit_link() acf get internal post type edit link ACF 6.4.2
function acf_get_internal_post_type_edit_link( $post_id, $post_type ) {
$instance = acf_get_internal_post_type_instance( $post_type );
if ( $instance ) {
return $instance->get_post_edit_link( $post_id );
}
return '';
}