There is no way to alter the gallery settings. About the only thing you can do is to override the entire gallery shortcode. You can technically have your users pass any sort of parameters into the shortcode and recognize them with your alternate gallery.
Simply use:
add_filter('post_gallery', 'foo_override_gallery', 1, 2);
function foo_override_gallery($empty, $attr){
//Extract the attributes
//Create your own gallery layout
return $output;
}
By returning any value to the filter, the default gallery is completely overridden. You must return HTML for this to work properly.
I know this isn’t exactly what you’re looking for, but it’s the closest way to customize the output of the gallery shortcode. I dumped the gallery template here sans the override filter that you could put in your new function: http://pastie.org/4293527
Hope this helps.
Related Posts:
- add_filter and changing output captions of image gallery
- Using variable from one filter in another filter
- Change default settings used by gallery shortcode
- Ajax, filters and shortcodes
- How to filter ‘post_gallery’ after all other filters/plugins etc
- How do I filter title and alt attributes in the gallery shortcode?
- WP Filter to change the URL of an Anchor wrapping the last gallery image
- Add Lightbox To WordPress Native Gallery
- add img class to native wordpress galleries
- How to display the content HTML of a page without displaying the gallery code as well
- get_post() containing gallery is outputting an unmatched closing div at the end of the content
- Get_template_part inside filter?
- custom gallery filter with image caption as link title?
- Gallery stripped from excerpt of post
- Hooked into wp_get_attachment_caption to add content to the default description; not working for jetpack slideshow. Why?
- Add Index to Item in WordPress Gallery
- How to stop echoing gallery inside content?
- Add custom options to the wplink dialog
- How to show page content in feed?
- remove_filter( ‘the_content’, ‘wpautop’ ); only for certain post types
- Valid characters for actions, hooks and filters
- How do I use the ‘http_request_host_is_external’ filter
- Is calling function_exists() faster or slower that apply_filters()
- Filtered query_vars becomes global. Why does this work?
- AJAX filter posts on click based on category
- Can I add custom meta for each image uploaded via media-upload.php?
- How do I know if author field was changed on post save?
- Alter only the page title, not the post titles within
- Load different template file when condition met?
- Some questions regarding filter
- Problem getting single_template filter to work – I want to serve a different single.php file for posts in a certain category
- Too many actions/filters!
- Which hook is fired when inserting media into a post
- How can override a add_filter of a plugin?
- Adding Filter Conditionally Per Page ID
- Nested calls the the_content filter
- How to change domain used when pinging sites
- return values from hooks do_action and apply_filters, which is better
- Return a custom value in a function added to an action hook
- Using Conditional Statement in functions.php
- get_title without filter(the_title)
- Multiple filters for wp_get_archive
- Filter and modify entry-footer link in twentyseventeen
- Function the_content not working
- Is there a filter called ‘network_admin_init’?
- Break out of wordpress filter
- Manipulating show_on_front, page_on_front, page_for_posts and template hierarchy
- Are there actions or filters I can use for Ajax calls?
- Add filter problems
- Where is the content cache when using apply_filters(‘the_content…?
- No ‘Access-Control-Allow-Origin’ header is present [closed]
- How to prepare WordPress Rest data for Preview Changes?
- How to validate recaptcha on comments form?
- Does a plugin with a AJAX button filter exist? [closed]
- Is there any filter to trigger as soon as media is uploaded to post or page?
- wp_mail works with add_action(‘save_post’, …) but not an ajax action
- add_filter with retrieve_password_message() not working in plugin, but works in functions.php
- Add a div of content within the_content after a certain block
- Gutenberg Block – Post Featured Image Filter Hook
- How can I return shortcode output to the top of the content?
- How can I change the email that is inside the default email texts of wordpress?
- How to filter link?
- Conditional does not work with add_filter
- Modify message displayed on post save
- Something is filtering my shortcodes… Can’t figure out what
- Pass debug_backtrace() in WordPress filter
- I need to hook and change language of facebook sdk
- change “missing attachment” text functions.php
- Use has_filter on comment_post
- Shorten the title length
- Problem with Class, Filters and Callbacks
- Renaming wordpress login and get new password button
- Search a title word through query_posts (not the exact match)
- Parse a shortcode differently based on on what it’s nested in
- return get_the_tag_list with whitespace removed
- Elementor Image Hover + Filter Grid [closed]
- How to redirect template_directory to subdomain relativ url?
- How do I add tags to entire comments, not just their text
- Scanning for custom embed and prefetching
- Remove and replace woocommerce add to cart button [closed]
- add_filter( ‘the_title’ gets through this if statement twice
- Changing the category for existing Gutenberg blocks
- Filter Post Title without affecting screen-reader-text
- Modify WordPress Page Title ()
- How to add lazy field in content endpoint using Gutenberg blocks
- how to use apply filter for Class?
- How can I see exactly what arguments are being passed through a filter so that I may modify them?
- Re-order search results with posts_orderby filter and post meta value
- Set Microsoft Word links to open in new window/tab
- WordPress get_avatar filter to match logins
- ‘the_content’ Filter delivers empty string with lengh (608)
- Testing requested query in pre_get_posts
- Output dynamic_sidebar_params in wp_head
- How to sort posts according to meta value?
- Change shortcode output (filter?)
- How do I add a class to all sidebars to let a Google Custom Search Engine know not to index the content?
- Updating User Profile on Registration
- remove_filter excerpt_more from a plugin class
- Why does using excerpt_more filter change link location?
- Limit total tags in the_content