Seems like you asked this Q on SO as well, I posted following answer over there:
The
meta_form
function is not pluggable, and there are no hooks
available, so, as hacking the core is not really recommended, you’ll
need another approach. The following is a jQuery solution. Put the
code in thefunctions.php
file of your theme, or in a plugin:
add_action( 'admin_footer', 'so17239871_mod_metakeyselect' );
function so17239871_mod_metakeyselect()
{
global $pagenow, $post_type;
if( ! ( 'post.php' == $pagenow && 'video_photo' == $post_type ) )
return;
?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#metakeyselect > option").hide();
jQuery("#metakeyselect > option[value^='tqmcf_']").show();
});
</script>
<?php
}
Related Posts:
- How to remove a filter that is an anonymous object?
- How to add defer=”defer” tag in plugin javascripts?
- How do filters and hooks really work in PHP
- Trouble understanding apply_filters()
- How would one modify the filtering Gutenberg applies to pasted content?
- No filter of code on switch from html to visual editor, how?
- How to modify posts_where filter only for the search query
- How to wrap oEmbed-embedded video in DIV tags inside the_content?
- How to add filter with 2 args?
- WordPress Internal @ Mentions
- Is it possible to use object in add_action?
- Adding revision support to WooCommerce product content
- Changing text within the Block Editor
- Add Class to Specific Paragraph of the_content()
- apply_filters() slices away needed arguments
- Search content for shortcodes and get parameters
- How to override the email function by using filters? [closed]
- Remove WPML’s home_url filter
- How Can I Have A URL Changed Based on the Originating URL?
- Is it possible to Hook/Filters Attachment Creation?
- Apply the_title filter to post titles AND backend auto social-sharing plugin, but not nav menu
- How to hook some Unicode texts into calendar widget safely?
- How to add attributes to tag when template cannot be directly modified
- how to remove filter from wordpress shortcode output
- Change email from and display name with a filter action
- Edit pagination text in the get_the_posts_pagination function
- How does WordPress call functions attached to a certain action hook before calling functions attached to other hooks
- How to get current action?
- how to change appearence of the content of default post list columns?
- Use safety filters even if after applied intval?
- Modify site URL via functions.php of a theme
- How to center oEmbedded content
- When adding buttons to the tinyMCE editor, how do I make them wrap to the next line and/or display in the “Kitchen Sink” area?
- How to change the order (priority) of registered filters (or actions) (e.g. for the_content)?
- Add Sortable Column For All Post Types
- How to change the order of HTML output of a core block?
- How to add ‘total’ value to custom column title on the posts list page
- When to use add_action when registering/enqueuing scripts
- Is it possible to use multiple spaces in title?
- Create Page Template by hook programatically in Functions.php in WP 5.8.1
- add_filter(allowed_block_types) -> adding core/paragraph bugs Gutenberg editor
- How to remove medium size class in gravity form for input tag?
- Filter out comments with certain meta key/s in the admin backend
- HTML and custom field variable, inside variable
- WordPress custom admin notice still displays after wp_insert_post_data validation
- how to use force_filtered_html_on_import in add_filter?
- Custom wp_query time filter on meta_value
- Filter Hook callback error, is it due to using $this inside a filter or something else?
- get post id within add_filter()
- Run posts_where and posts_join only on the main query
- Disadvantage of using filters & hooks multiple times
- How To Override A WooCommerce AJAX Function
- Media upload default title from file name
- run shortcode in excerpt of single custom post type
- Use of comment_reply_link_args filter
- Get The Caller (Plugin / Theme / Core) For All actions & Hook in WordPress
- How to trim white space in search terms?
- Error using wp_mail inside custom function
- Add/remove CRON action depending on variable
- Stripping URLs & Email from post submissions
- comment_for() Custom fields not visible when user is logged in
- Filter authors on meta value
- I’ve set up an extra field for all the available widgets. How do I show it’s value in the front-end?
- Override email_exists function
- Access post ID in “content_save_pre”
- Remove pretty photo style and script if not exist!
- custom gallery filter with image caption as link title?
- Gallery stripped from excerpt of post
- Add_filter rel=”prettyphoto” to WP3.4.1
- BuddyPress – A hook available to hide custom born date on public profile view?
- How can i filter wordpress users by custom feild?
- How to filter the source URL of all images on every page
- auth_redirect() doesn’t send users to the page where they orginally tried to acces
- the_content getting current page content instead specified ID
- How to redirect a unique link based on login status
- Custom sort orderby question
- Override wordpress audio playlist
- Hook to add content after date in post?
- How to bridge the gap between dynamic back-end data and front-end output?
- How to loop year & month condition together to filter correctly via AJAX?
- Add Index to Item in WordPress Gallery
- How to add_filter only when content is not empty?
- filter out
- Filter template text
- WP Dashboard -> Posts-> Filter > BUG!
- How to remove the post pagination (Next page tag) depending on type of traffic source: from utm_campain or non-utm_campain
- add_filter not working inside if function
- How do I disable the warning “The backup of this post in your browser is different from the version below”?
- How to get to the date of the uploaded file
- How to filter posts in admin by before date or by post status ‘future’?
- Can’t get content of all (19) posts – Incomplete Chunked Encoding
- Custom excerpt_more filter not working when tag is present
- Taxonomy search filters
- NextGEN Gallery: Adding drop-down menu widget to gallery view without modifying plugin code [closed]
- How do you disable the verification process of user email changes?
- Modify the third (context) parameter in a filter?
- How to elect position of new item output in a dropdown when using add_filter
- Query Multiple Filters, one with Meta
- How to remove a filter that is an object method?
- Filter a custom post type by custom field in admin