is_plugin_active() returning false on active plugin
So I have the following in an include in my theme file: include_once( ABSPATH . ‘wp-admin/includes/plugin.php’ ); if ( is_plugin_active( WP_PLUGIN_DIR . ‘/woocommerce/woocommerce.php’ ) ) { $shop_id = woocommerce_get_page_id( ‘shop’ ); $shop_page = get_page( $shop_id ); } but is_plugin_active( WP_PLUGIN_DIR . ‘/woocommerce/woocommerce.php’) is returning false, despite the fact that the plugin is active. I’m wondering … Read more