conflict
-
Dear plugin author,
please use the following code to prevent including the sweetalert.css file outside the plugin pages, because t conflicts with another plugin.public function enqueue_styles() { $can_load = apply_filters( $this->plugin_abbr . '_can_load_sweetalert_js', false ); if ( $can_load ) { wp_register_style( "sweetalert_{$this->version}", plugin_dir_url( __FILE__ ) . 'assets/css/sweetalert2.min.css', array(), $this->version ); wp_enqueue_style( "sweetalert_{$this->version}" ); }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘conflict’ is closed to new replies.