WC_Post_Types::maybe_flush_rewrite_rules()
Flush rules if the event is queued.
Метод класса: WC_Post_Types{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = WC_Post_Types::maybe_flush_rewrite_rules();
Список изменений
С версии 3.3.0 | Введена. |
Код WC_Post_Types::maybe_flush_rewrite_rules() WC Post Types::maybe flush rewrite rules WC 9.8.2
public static function maybe_flush_rewrite_rules() { if ( 'yes' === get_option( 'woocommerce_queue_flush_rewrite_rules' ) ) { update_option( 'woocommerce_queue_flush_rewrite_rules', 'no' ); self::flush_rewrite_rules(); } }