includes/managers/class-fs-admin-menu-manager.php
function override_submenu_action( $parent_slug, $menu_slug, $function ) {
			global $submenu;

			$menu_slug   = plugin_basename( $menu_slug );
			$parent_slug = plugin_basename( $parent_slug );

			if ( ! isset( $submenu[ $parent_slug ] ) ) {
				// Parent menu not exist.
				return false;
			}

			$found_submenu_item = false;
			foreach ( $submenu[ $parent_slug ] as $submenu_item ) {
				if ( $menu_slug === $submenu_item[2] ) {
					$found_submenu_item = $submenu_item;
					break;
				}
			}

			if ( false === $found_submenu_item ) {
				// Submenu item not found.
				return false;
			}

			// Remove current function.
			$hookname = get_plugin_page_hookname( $menu_slug, $parent_slug );
			remove_all_actions( $hookname );

			// Attach new action.
			add_action( $hookname, $function );

			return $hookname;
		}
function override_submenu_action( $parent_slug, $menu_slug, $function ) {
			global $submenu;

			$menu_slug   = plugin_basename( $menu_slug );
			$parent_slug = plugin_basename( $parent_slug );

			if ( ! isset( $submenu[ $parent_slug ] ) ) {
				// Parent menu not exist.
				return false;
			}

			$found_submenu_item = false;
			foreach ( $submenu[ $parent_slug ] as $submenu_item ) {
				if ( $menu_slug === $submenu_item[2] ) {
					$found_submenu_item = $submenu_item;
					break;
				}
			}

			if ( false === $found_submenu_item ) {
				// Submenu item not found.
				return false;
			}

			// Remove current function.
			$hookname = get_plugin_page_hookname( $menu_slug, $parent_slug );
			remove_all_actions( $hookname );

			// Attach new action.
			add_action( $hookname, $function );

			return $hookname;
		}
function override_submenu_action ( $ parent_slug , $ menu_slug , $ function ) { global $ submenu ; $ menu_slug = plugin_basename ( $ menu_slug ) ; $ parent_slug = plugin_basename ( $ parent_slug ) ; if ( ! isset ( $ submenu [ $ parent_slug ] ) ) { // Parent menu not exist. return false ; } $ found_submenu_item = false ; foreach ( $ submenu [ $ parent_slug ] as $ submenu_item ) { if ( $ menu_slug === $ submenu_item [ 2 ] ) { $ found_submenu_item = $ submenu_item ; break ; } } if ( false === $ found_submenu_item ) { // Submenu item not found. return false ; } // Remove current function. $ hookname = get_plugin_page_hookname ( $ menu_slug , $ parent_slug ) ; remove_all_actions ( $ hookname ) ; // Attach new action. add_action ( $ hookname , $ function ) ; return $ hookname ; }
Override submenu's action.

@author Vova Feldman (@svovaf)
@since  1.1.0

@param string   $parent_slug
@param string   $menu_slug
@param callable $function

@return false|string If submenu exist, will return the hook name.
Override submenu s action .