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


Top ↑

Parameters Parameters

$args

(array) (Required) Default custom post type arguments.


Top ↑

Return Return

(array)


Top ↑

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,
			)
		);

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.19.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.