LLMS_Admin_Menus::action_scheduler_menu( array $args )
If WP_DEBUG is not enabled, expose the schedule-action post type management via direct link
Description Description
EG: site.com/wp-admin/edit.php?post_type=scheduled-action
Parameters Parameters
- $args
-
(array) (Required) Default custom post type arguments.
Return Return
(array)
Source Source
File: includes/admin/class.llms.admin.menus.php
public function action_scheduler_menu( $args ) { // If WP_DEBUG is enabled the menu item will already be displayed under "tools.php". if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { return $args; } // Otherwise we'll add a hidden menu accessible via direct link only. return array_merge( $args, array( 'show_ui' => true, 'show_in_menu' => '', 'show_in_admin_bar' => false, ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.19.0 | Introduced. |