Skip to content

Commit

Permalink
#5 Add handler for filter hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
fumikito committed Dec 9, 2020
1 parent f44644b commit a3412ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class MultipleCheckbox extends \WP_Customize_Control {
*/
public function enqueue() {
$path = dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) . '/assets/js/multiple-checkbox.min.js';
$url = apply_filters( 'theme_customizer_asset_url', $this->path_to_url( $path ) );
$url = apply_filters( 'theme_customizer_asset_url', $this->path_to_url( $path ), 'theme-customizer-multiple-checkbox' );
$version = '1.0.0';
wp_enqueue_script( 'theme-customizer-multiple-checkbox', $url, [ 'jquery' ], $version, true );
}
Expand Down

0 comments on commit a3412ed

Please sign in to comment.