Last active
August 29, 2015 14:07
-
-
Save aaroneaton/5dc844483647a285be0f to your computer and use it in GitHub Desktop.
add theme to selector
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 | |
function om_sample_add_lightbox_theme( $themes, $type ) { | |
// Let's make sure we're adding to the lightbox themes. If not, return early. | |
if ( 'lightbox' != $type ) { | |
return $themes; | |
} | |
$themes['sample'] = array( | |
'name' => __( 'Sample Theme', 'optin-monster-sample-themes' ), | |
'image' => plugins_url( 'images/icon.jpg', __FILE__ ), // Feel free to add any image you like at this point | |
'file' => __FILE__, | |
); | |
// As with all filters, make sure to return the data. | |
return $themes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment