ACF_Admin_Internal_Post_Type_List::get_admin_url
Returns the admin URL for the current post type edit page.
Метод класса: ACF_Admin_Internal_Post_Type_List{}
Хуков нет.
Возвращает
Строку
.
Использование
$ACF_Admin_Internal_Post_Type_List = new ACF_Admin_Internal_Post_Type_List(); $ACF_Admin_Internal_Post_Type_List->get_admin_url( $params );
- $params(строка)
- Extra URL params.
По умолчанию: ''
Список изменений
С версии 5.9.0 | Введена. |
Код ACF_Admin_Internal_Post_Type_List::get_admin_url() ACF Admin Internal Post Type List::get admin url ACF 6.4.2
public function get_admin_url( $params = '' ) { if ( isset( $_GET['paged'] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended -- used as intval to return a page. $params .= '&paged=' . intval( $_GET['paged'] ); //phpcs:ignore WordPress.Security.NonceVerification.Recommended -- used as intval to return a page. } return admin_url( "edit.php?post_type={$this->post_type}{$params}" ); }