WooCommerce::activated_plugin() public WC 3.6.0
Ran when any plugin is activated.
{} Это метод класса: WooCommerce{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WooCommerce = new WooCommerce(); $WooCommerce->activated_plugin( $filename );
- $filename(строка) (обязательный)
- The filename of the activated plugin.
Список изменений
С версии 3.6.0 | Введена. |
Код WooCommerce::activated_plugin() WooCommerce::activated plugin WC 5.0.0
public function activated_plugin( $filename ) {
include_once dirname( __FILE__ ) . '/admin/helper/class-wc-helper.php';
if ( '/woocommerce.php' === substr( $filename, -16 ) ) {
set_transient( 'woocommerce_activated_plugin', $filename );
}
WC_Helper::activated_plugin( $filename );
}