Created
January 18, 2017 17:16
-
-
Save themeblvd/2d876b10260d6919b6720fc27a178756 to your computer and use it in GitHub Desktop.
Create a custom set of column number selections for the Post Grid element.
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 | |
/** | |
* Create a custom set of column number | |
* selections for the Post Grid element. | |
*/ | |
function my_elements( $elements ) { | |
$elements['post_grid']['options']['columns']['options'] = array( | |
'1' => __( '1 Column' ), | |
'2' => __( '2 Column' ), | |
'3' => __( '3 Column' ), | |
'4' => __( '4 Column' ), | |
'5' => __( '5 Column' ) | |
); | |
return $elements; | |
} | |
add_filter( 'themeblvd_elements', 'my_elements' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment