Filters the parent file of an admin menu sub-menu item.
Description
Allows plugins to move sub-menu items around.
Parameters
$parent_filestring- The parent file.
Source
$parent_file = apply_filters( 'parent_file', $parent_file );
Changelog
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |
Example:
$plugin_pageto the parent slug. My concern is that it’s not the most robust approach and could cause issues down the line. I could be wrong though.