mirror of
https://github.com/pronamic/woocommerce-subscriptions.git
synced 2025-10-13 12:52:56 +00:00
2.2.7
This commit is contained in:

committed by
Remco Tolsma

parent
5e536ec717
commit
b99eba2f79
@@ -29,7 +29,7 @@ class ActionScheduler_AdminView {
|
||||
*/
|
||||
public function init() {
|
||||
|
||||
if ( defined( 'WP_DEBUG' ) && true == WP_DEBUG && is_admin() && ( ! defined( 'DOING_AJAX' ) || false == DOING_AJAX ) ) {
|
||||
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || false == DOING_AJAX ) ) {
|
||||
add_filter( 'action_scheduler_post_type_args', array( self::instance(), 'action_scheduler_post_type_args' ) );
|
||||
}
|
||||
|
||||
@@ -60,10 +60,10 @@ class ActionScheduler_AdminView {
|
||||
|
||||
public function action_scheduler_post_type_args( $args ) {
|
||||
return array_merge( $args, array(
|
||||
'show_ui' => true,
|
||||
'show_in_menu' => 'tools.php',
|
||||
'show_ui' => true,
|
||||
'show_in_menu' => 'tools.php',
|
||||
'show_in_admin_bar' => false,
|
||||
));
|
||||
) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user