WordPress.org

Make WordPress Core

Ticket #24531: 24531.2.diff

File 24531.2.diff, 541 bytes (added by kraftbj, 6 years ago)

adds parent_file arg

  • src/wp-admin/menu-header.php

     
    3636 */
    3737$parent_file = apply_filters( 'parent_file', $parent_file );
    3838
     39/**
     40 * Filter the file of an admin menu sub-menu item.
     41 *
     42 * @since 4.4.0
     43 *
     44 * @param string $submenu_file The submenu file.
     45 */
     46$submenu_file = apply_filters( 'submenu_file', $submenu_file, $parent_file );
     47
    3948get_admin_page_parent();
    4049
    4150/**