Created
February 27, 2016 14:24
-
-
Save timersys/e3648ba93955ddef4087 to your computer and use it in GitHub Desktop.
Filter to make maxbuttons WordPress Plugin compatible with popups plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Filter to make maxbuttons WordPress Plugin (https://es.wordpress.org/plugins/maxbuttons/) | |
* compatible with popups plugin https://es.wordpress.org/plugins/popups/ | |
*/ | |
add_filter( 'mb_shortcode_display_args', 'popups_maxbuttons'); | |
function popups_maxbuttons( $args){ | |
$args['load_css'] = 'inline'; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment