From 31ef5c4eb303aa364a2591a02b8c2dd804551172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Rodr=C3=ADguez?= Date: Thu, 28 Jan 2016 15:41:55 -0430 Subject: [PATCH 1/2] Added 'show_ui'=>true to the args of register_post_type to be compatible with Wordpress 4.4 --- helpers/action-hook.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpers/action-hook.php b/helpers/action-hook.php index 1778874..dfec79f 100644 --- a/helpers/action-hook.php +++ b/helpers/action-hook.php @@ -537,6 +537,7 @@ public static function register_post_type() { array( 'slug' => 'wr_cf_post_type', 'options' => array( + 'show_ui' => 'true', 'labels' => array( 'name' => __( 'Forms', WR_CONTACTFORM_TEXTDOMAIN ), 'menu_name' => __( 'WR ContactForm', WR_CONTACTFORM_TEXTDOMAIN ), @@ -573,6 +574,7 @@ public static function register_post_type() { array( 'slug' => 'wr_cfsb_post_type', 'options' => array( + 'show_ui' => 'true', 'labels' => array( 'name' => __( 'Submissions', WR_CONTACTFORM_TEXTDOMAIN ), 'singular_name' => __( 'Submission Edit', WR_CONTACTFORM_TEXTDOMAIN ), From edf45a4b5a7f481e42e81115a54405e79e4bce24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Rodr=C3=ADguez?= Date: Thu, 28 Jan 2016 16:05:34 -0430 Subject: [PATCH 2/2] Fixed missing plugin button in WP admin menu\nRemoved 'show_ui' => true from wr_cf_post_type, added in commit 31ef5c4eb303aa364a2591a02b8c2dd804551172, that prevented the button from showing --- helpers/action-hook.php | 1 - 1 file changed, 1 deletion(-) diff --git a/helpers/action-hook.php b/helpers/action-hook.php index dfec79f..d0de9ef 100644 --- a/helpers/action-hook.php +++ b/helpers/action-hook.php @@ -537,7 +537,6 @@ public static function register_post_type() { array( 'slug' => 'wr_cf_post_type', 'options' => array( - 'show_ui' => 'true', 'labels' => array( 'name' => __( 'Forms', WR_CONTACTFORM_TEXTDOMAIN ), 'menu_name' => __( 'WR ContactForm', WR_CONTACTFORM_TEXTDOMAIN ),