Memeriksa apakah WooCommerce Aktif

Kode untuk memeriksa apakah plugin WooCommerce aktif atau tidak.

/**
 * Cek jika WooCommerce aktif
 **/
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
   echo 'WooCommerce aktif!';
}
5 of 5

from 1 ratings

Leave a Reply

Your email address will not be published. Required fields are marked *