GravityKit\GravityMigrate\ImportExportMenu
Offers the migration wizard from Gravity Forms' own Import/Export navigation.
gform_export_menu, the filter GFExport::get_tabs() runs its navigation through, is the only
opening that screen has: GFExport::import_form_page() prints the panel with no hook inside it.
So this is a navigation item carrying a url -- a key Gravity Forms has honoured since 2.6 and
uses itself for the About link on the System Status screen -- straight to the wizard.
Since: %ver%
Source: src/ImportExportMenu.php:22
Details
- Kind:
class - Namespace:
GravityKit\GravityMigrate
Methods
| Method | Description |
|---|---|
register_hooks() | Registers the hooks this class owns. |
add_menu_item() | Adds GravityMigrate to Gravity Forms' Import/Export navigation. |
Method Reference
register_hooks()
public function register_hooks(): void
Registers the hooks this class owns.
Returns
void
Since: %ver%
Source: src/ImportExportMenu.php:57
add_menu_item()
public function add_menu_item( $menu_items ): array
Adds GravityMigrate to Gravity Forms' Import/Export navigation.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$menu_items | array | Navigation items, keyed by position. |
Returns
array
Since: %ver%
Source: src/ImportExportMenu.php:70