Created
February 26, 2021 11:51
-
-
Save plugin-republic/222ce71cfec2f355bb5a11380b064e09 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Toggle accordion closed when one is opened | |
*/ | |
function prefix_toggle_accordion_closed( $toggle, $post_id ) { | |
return 'yes'; | |
} | |
add_filter( 'pewc_close_accordion', 'prefix_toggle_accordion_closed', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment