wpcf7_admin_management_page()
Хуки из функции
Возвращает
null
. Ничего (null).
Использование
wpcf7_admin_management_page();
Код wpcf7_admin_management_page() wpcf7 admin management page CF7 6.0.5
<?php function wpcf7_admin_management_page() { if ( $post = wpcf7_get_current_contact_form() ) { $post_id = $post->initial() ? -1 : $post->id(); require_once WPCF7_PLUGIN_DIR . '/admin/includes/editor.php'; require_once WPCF7_PLUGIN_DIR . '/admin/edit-contact-form.php'; return; } if ( 'validate' === wpcf7_current_action() and wpcf7_validate_configuration() and current_user_can( 'wpcf7_edit_contact_forms' ) ) { wpcf7_admin_bulk_validate_page(); return; } $list_table = new WPCF7_Contact_Form_List_Table(); $list_table->prepare_items(); ?> <div class="wrap" id="wpcf7-contact-form-list-table"> <h1 class="wp-heading-inline"><?php echo esc_html( __( 'Contact Forms', 'contact-form-7' ) ); ?></h1> <?php if ( current_user_can( 'wpcf7_edit_contact_forms' ) ) { echo wpcf7_link( menu_page_url( 'wpcf7-new', false ), __( 'Add New', 'contact-form-7' ), array( 'class' => 'page-title-action' ) ); } if ( ! empty( $_REQUEST['s'] ) ) { echo sprintf( '<span class="subtitle">' /* translators: %s: search keywords */ . __( 'Search results for “%s”', 'contact-form-7' ) . '</span>', esc_html( $_REQUEST['s'] ) ); } ?> <hr class="wp-header-end"> <?php do_action( 'wpcf7_admin_warnings', 'wpcf7', wpcf7_current_action(), null ); wpcf7_welcome_panel(); do_action( 'wpcf7_admin_notices', 'wpcf7', wpcf7_current_action(), null ); ?> <form method="get" action=""> <input type="hidden" name="page" value="<?php echo esc_attr( $_REQUEST['page'] ); ?>" /> <?php $list_table->search_box( __( 'Search Contact Forms', 'contact-form-7' ), 'wpcf7-contact' ); ?> <?php $list_table->display(); ?> </form> </div> <?php }