woocommerce_flush_rewrite_rules хук-событие . WC 1.0
Использование
add_action( 'woocommerce_flush_rewrite_rules', 'action_function_name_7936' ); function action_function_name_7936(){ // action... }
Где вызывается хук
woocommerce_flush_rewrite_rules
woocommerce_flush_rewrite_rules
woocommerce/includes/class-wc-install.php 318
do_action( 'woocommerce_flush_rewrite_rules' );
woocommerce/includes/wc-core-functions.php 1153
do_action( 'woocommerce_flush_rewrite_rules' );
Где используется хук в ядре WooCommerce
woocommerce/includes/class-wc-post-types.php 29
add_action( 'woocommerce_flush_rewrite_rules', array( __CLASS__, 'flush_rewrite_rules' ) );