Created
May 25, 2016 08:54
-
-
Save mustardBees/aa32a7667af470e9d7e95d4caa8e4123 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 | |
/** | |
* CMB2 Field Type: Select2 asset path | |
* | |
* Filter the path to front end assets (JS/CSS). | |
*/ | |
function pw_cmb2_field_select2_asset_path() { | |
return get_stylesheet_directory_uri() . '/metaboxes/cmb-field-select2'; | |
} | |
add_filter( 'pw_cmb2_field_select2_asset_path', 'pw_cmb2_field_select2_asset_path' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment