search on posts table by function_name
-
I have the following in order to filter by ID (I have a specific column for post ID):
/** * Add search custom posts by their ID in WordPress dashboard * */ add_action( 'parse_request', 'cdxn_search_by_id' ); function cdxn_search_by_id( $wp ) { global $pagenow; if( !is_admin() && 'edit.php' != $pagenow && 'post' !== $_GET['post_type']) { return; } // If it's not a search return if( !isset( $wp->query_vars['s'] ) ) { return; }
How can I modify this function (or create another one) in order to search by meta key “function_name” ? I dont need the exact match, i.e. if I digit “bellarosa” I’ll list both “bellarosa c7” and “bellarosa c72”
The page I need help with: [log in to see the link]
- The topic ‘search on posts table by function_name’ is closed to new replies.