Skip to content

Instantly share code, notes, and snippets.

@themeblvd
Created January 18, 2017 17:16
Show Gist options
  • Save themeblvd/2d876b10260d6919b6720fc27a178756 to your computer and use it in GitHub Desktop.
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.
<?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