Created
May 31, 2015 03:50
-
-
Save mintplugins/5caf807b094bddfb6181 to your computer and use it in GitHub Desktop.
PostGrid: Filter the classes for a postgrid links to make them open in a lightbox
This file contains hidden or 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
/** | |
* Filter the classes for a postgrid links to make them open in a lightbox | |
* | |
* @since 1.5.0 | |
* | |
* @param string $classes The string containing all of the classes for postgrid links | |
*/ | |
function my_custom_postgrid_classes( $classes ){ | |
return 'mp-stacks-lightbox-link'; | |
} | |
add_filter( 'mp_stacks_postgrid_grid_postlink_classes', 'my_custom_postgrid_classes' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment