mustardBees / cmb-field-select2

Select2 field type for Custom Metaboxes and Fields for WordPress
93 stars 46 forks source link

Support for custom path/url #16

Closed kalicki closed 8 years ago

kalicki commented 9 years ago
if ( ! defined( 'PW_SELECT2_URL' ) ) {
    define( 'PW_SELECT2_URL', plugin_dir_url( __FILE__ ) );
}

It would be interesting to put a validation because I can customize the URL

mustardBees commented 9 years ago

This is great suggestion. I will be refactoring the code over the next few weeks. It'll likely end up as a filter.

mustardBees commented 8 years ago

Hi @kalicki. I've released a new version. There is a filter which can be used to override the asset path. I've given an example over here. I'd also appreciate it if you could generally have a play with the new release and open an issue if you have any trouble.