We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6e5651 commit cf501cbCopy full SHA for cf501cb
1 file changed
classes/class-cpt-wplf-submission.php
@@ -106,7 +106,10 @@ function custom_columns_cpt( $columns ) {
106
function form_filter_dropdown() {
107
global $pagenow;
108
109
- if( 'edit.php' != $pagenow ) {
+ $allowed = array("wplf-submission"); // show filter on these post types (currently only one?)
110
+ $post_type = get_query_var("post_type");
111
+
112
+ if( 'edit.php' != $pagenow || !in_array($post_type, $allowed)) {
113
return;
114
}
115
@@ -201,4 +204,3 @@ function metabox_submission() {
201
204
202
205
203
206
endif;
-
0 commit comments