Skip to content

Commit 24d6882

Browse files
committed
add filter to allow customizing where the dropdown filter is shown
1 parent cf501cb commit 24d6882

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

classes/class-cpt-wplf-submission.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ function form_filter_dropdown() {
107107
global $pagenow;
108108

109109
$allowed = array("wplf-submission"); // show filter on these post types (currently only one?)
110+
$allowed = apply_filters("wplf-dropdown-filter", $allowed);
110111
$post_type = get_query_var("post_type");
111112

112113
if( 'edit.php' != $pagenow || !in_array($post_type, $allowed)) {

0 commit comments

Comments
 (0)