CODEX
Shortcodes, Hooks & Extensions
HUSKY – WooCommerce Products Filter Professional の完全リファレンス
- SC [[woof]] WooCommerce Products Filterのメインショートコード。検索フォームを生成します。デザイン: 1ページ - 1フィルター、同じページに複数のフィルターを配置することはできません... →
- SC [[woof_author_filter]] 著者IDでフィルターし、サイトのフロントエンドでドロップダウンとして表示されます。このショートコードを使用するには、「著者による検索」拡張機能がアクティブである必要があります… →
- SC [[woof_btn]] 検索フォームを表示/非表示にする特別なボタンを生成できます。フィルターを非表示にするボタンを表示します。ショートコード属性 'autohide' に基づいて動作します。使用例:… →
- SC [[woof_found_count]] 見つかった商品の数を表示します。通常のテキストウィジェットに好きなテキストでドロップするか、フック woof_print_content_before_search_form で使用します。 v.2.1.6 より →
- SC [[woof_front_builder]] v.2.3.4/1.3.4 から このショートコードは、特別なコンストラクタを使用してサイトのフロントエンドで直接フィルターフォームを作成できます。ここにデモページがあります… →
- SC [[woof_mobile]] このショートコードは、モバイルボタンが挿入されるコンテナを追加します。モバイルボタンはモバイルデバイスに表示され、隠された WOOF フィルターフォームを呼び出して表示します… →
- SC [[woof_price_filter]] 価格フィルターをドロップダウンまたはスライダーとして。このショートコードには 3 つのオプション属性 type - slider, select, text があります。additional_taxes - 例 -> product_cat:9 - これは特別なもののようなものです… →
- SC [[woof_products]] Second main shortcode of the plugin. Its allows out products on pages of the site. All attributes of the shortcode is optional. per_page - products per page… →
- SC [[woof_products_messenger]] No attributes. Description is here. →
- SC [[woof_quick_search]] Should be activated extension: Quick Search preload - (1/0)if 1 its loads data file immediately after page loading, if 0 - only after user his start… →
- SC [[woof_quick_search_results]] 拡張機能:クイック検索 per_page - ページあたりの製品 template_result - 定義する必要があり、5つの事前定義されたテンプレートがあります:list_1 | list_2 |… →
- SC [[woof_save_query]] 目的:ログインユーザーが現在のフィルター選択を保存して、後で簡単にアクセスできるようにします。説明 このショートコードは、ユーザーが保存できるウィジェットを表示します… →
- SC [[woof_search_options]] 検索が実行されている場合(赤いボタン)に検索ナビゲーションを生成します。オプションはありません。 →
- SC [[woof_sku_filter]] サイト上にテキスト入力を生成します。オプション属性は1つのみです。検索条件は、アクティベーション後にアクセスできるプラグインの設定ページにあります… →
- SC [[woof_step]] このショートコードは、顧客のためにステップバイステップのフィルターウィザードを作成できます。属性: by_step - このショートコードのメイン属性で、キーを配置する必要があります… →
- SC [[woof_text_filter]] ショップにテキスト入力フィールドを生成してWooCommerce商品をテキストで検索します。開発者名はHUSKYです。検索できるのは次のとおりです。タイトル、コンテンツ、抜粋、メタフィールド、タクソミー... →
拡張機能のテンプレートをオーバーライドできます。フォルダは現在の WordPress テーマフォルダに配置し、元の拡張機能と同じファイル構造である必要があります。例:wp-content/themes/my_child_theme/woof/ext/image/views/woof.php
1.
ACF
View info →
2.
テキストによる高度な検索
View info →
3.
By rating
View info →
4.
色
View info →
5.
条件
View info →
6.
Essential Grid
View info →
7.
バックオーダー製品を除外
View info →
8.
おすすめ商品
View info →
9.
フロントビルダーのフィルターフォーム
View info →
10.
階層ドロップダウン
View info →
11.
画像
View info →
12.
インポート/エクスポート
View info →
13.
在庫チェックボックス
View info →
14.
ラベル
View info →
15.
メタフィールド
View info →
16.
セール中チェックボックス
View info →
17.
製品メッセンジャー
View info →
18.
高速検索
View info →
19.
ドロップダウンのラジオまたはチェックボックス
View info →
20.
検索クエリの保存
View info →
21.
作成者による検索
View info →
22.
SKUによる検索
View info →
23.
セクション
View info →
24.
SEO URL リクエスト
View info →
25.
スライドアウトショートコード
View info →
26.
スライダー
View info →
27.
スマートデザイナー
View info →
28.
統計
View info →
29.
ステップバイステップフィルター
View info →
30.
在庫数スライダー
View info →
31.
テンプレート 1
View info →
32.
ターボモード
View info →
33.
WooCommerce Product Table
View info →
- do_action woof_after_draw_filter WOOFフィルターフォームの各フィルター要素の印刷後に機能します。add_action('woof_after_draw_filter', function($key, $shortcode_atts) { //ここに何か }, 99, 2); v.2.2.5/1.2.5 より →
- do_action woof_before_draw_filter WOOFフィルターフォームの各フィルター要素の印刷前に動作します。add_action('woof_before_draw_filter', function($key, $shortcode_atts) { // ここに記述 }, 99, 2); v.2.2.5/1.2.5 より →
- do_action woof_exclude_existing_variations v.2.2.6 から在庫検索が改善されました。全員が必要とするわけではないバリエーションを検索結果に含める必要があり、また余分なリクエストを回避できるためです。デフォルトでは… →
- do_action woof_image_allow_term_desc v.2.2.6 より デフォルトでは、画像のタームの説明が追加されますが、現在は無効にすることができます。デフォルトは true です。例: add_filter('woof_image_allow_term_desc',… →
- do_action woof_meta_options_separator v.2.2.6以降 カンマ区切りをオプションで置き換える必要があります、メタにカンマがオプションの一部として含まれている場合に便利です。例:add_filter('woof_meta_options_separator', function ($sep)… →
- do_action woof_mobile_btn_place_container v.2.2.6以降 モバイルフィルターボタンが表示されるべきセレクターをオーバーライドできます。デフォルトはCSSクラス「.woocommerce-products-header」です。コード例: add_filter('woof_mobile_btn_place_container', function ($selector)… →
- do_action woof_override_seo_request_uri From v.2.2.6/1.2.6 Uses for extension 'SEO URL request' - passes the current URL. Need to adapt different servers if necessary →
- do_action woof_print_design_additional_options 拡張機能で、必要に応じてデザインタブにオプションを追加するために使用します。例: add_action('woof_print_design_additional_options', array($this, 'my_design_additional_options'), 10, 1); public function my_design_additional_options() { global $WOOF;… →
- do_action woof_print_html_type_options_{type} プラグインの設定ページの設定タブで設定ブロックを描画するためのすべての拡張機能で使用 [inpost_fancy thumb_width="200" thumb_height="200" post_id="279" thumb_margin_left="5" thumb_margin_bottom="5" thumb_border_radius="200" thumb_shadow="0 1px… →
- do_action woof_print_html_type_{type} 拡張機能がフロントエンドで自身を描画するために使用されます。拡張機能のinitで次のコードを記述するだけで十分です: add_action('woof_print_html_type_' . $this->html_type, array($this, 'print_html_type'),… →
- do_action woof_print_tax_additional_options_{type} '追加オプション' ボタンの下に追加オプションを印刷するための拡張機能で使用します。例: color: [inpost_fancy thumb_width="200" thumb_height="200" post_id="281" thumb_margin_left="5" thumb_margin_bottom="5" thumb_border_radius="200" thumb_shadow="0 1px 4px rgba(0,… →
- do_action woof_seo_request_literals v.2.2.6/1.2.6 から拡張機能「SEO URL リクエスト」に使用されます - SEO ルールフィールドに挿入できるリテラル変数を追加できます。例… →
- do_action woof_seo_rules_langs v.2.2.6/1.2.6 より、「SEO URL リクエスト」拡張機能に使用され、Polylang のようなプラグインに複数の言語を追加できます。例: add_filter('woof_seo_rules_langs',function($langs){ $langs = array_merge($langs, array('en_US', 'es_ES'));… →
- do_action woof_wp_load_js このフックは、必要に応じてサイトフロントにカスタムJavaScript変数を追加することを許可します add_action('woof_wp_load_js', function ($str) { $str .= ';var my_var1="Hello";'; $str .= 'var… →
- apply_filters woof_add_html_types タクソノミータイプの拡張機能で、そのキーをシステムに追加して拡張機能を可視化します。例: add_filter('woof_add_html_types', array($this, 'woof_add_html_types')); public function woof_add_html_types($types) {… →
- apply_filters woof_add_items_keys 'by_' 拡張機能での使用。システムにキーを追加して拡張機能を可視化します。例: add_filter('woof_add_items_keys', array($this, 'woof_add_items_keys')); public function woof_add_items_keys($keys) { $keys[]… →
- apply_filters woof_before_term_name htmlタイプで使用: radio, checkbox, select, mselect のように、ラベルの前に任意のシンボルまたはアイコンを表示します [inpost_fancy thumb_width="200" thumb_height="200" post_id="275" thumb_margin_left="5" thumb_margin_bottom="5" thumb_border_radius="200"… →
- apply_filters woof_block_toggle_state タクソノミーブロックのトグル状態を操作できます。たとえば、モバイルデバイスで閉じることができます:add_filter('woof_block_toggle_state', function($block_is_closed) { if (wp_is_mobile()) { $block_is_closed = true; }… →
- apply_filters woof_clear_all_text 検索ナビゲーションパネルの「すべてクリア」ボタンのテキストを変更できます。 add_filter('woof_clear_all_text', function($default_text) { return 'Clear the filter'; }, 99, 1); v.2.2.5/1.2.5以降… →
- apply_filters woof_counter_method Dynamic recount でのメモリオーバーロードに関する開発者の実験のため。このフックはファイル: wp-content\plugins\woocommerce-products-filter\classes\counter.php のクラス WP_QueryWoofCounter の __constructor で使用されます。このフックが TRUE を返すと… →
- apply_filters woof_custom_filter_items_order フック woof_custom_filter_items_order は、フィルター要素の順序を変更する機能を提供し、フィルターキーの配列を渡します (フィルターセクションキーは、次の方法で見つけることができます)。 →
- apply_filters woof_delete_img_url 削除画像の画像URLを変更できます。 add_filter('woof_delete_img_url', function($current_img) { return 'https://my-site.com/wp-content/my-woof-del.png'; }, 10, 1); v.2.2.5.6 以降 →
- apply_filters woof_disable_filter 目的: 特定のページや条件でWOOFプラグインを無効化する。このフックを使用すると、特定のページ、投稿タイプ、または…でWOOFプラグインの機能を完全に無効にできます。 →
- apply_filters woof_ext_custom_title_by_instock フィルターフォームの「在庫あり」チェックボックスにカスタムタイトルを設定できます。Loco Translate プラグインを使用して翻訳することもできます。 →
- apply_filters woof_ext_custom_title_XXX 次の 3 つの拡張機能のチェックボックスのラベルを変更します。在庫ありチェックボックス、おすすめ製品、セール中チェックボックス。'XXX' の代わりに、次を使用します:`by_instock`、`by_featured`、`by_onsales` v.1.1.8/2.1.8 →
- apply_filters woof_filter_shortcode_args ショートコード[woof]のフック。ビジネス条件に応じてショートコード引数を動的に変更しますadd_filter('woof_filter_shortcode_args', function($args) { // $args に何か処理をする return $args;… →
- apply_filters woof_filter_title フック woof_filter_title (v.3.3.6 以降) タクソノミーフィルターとメタフィルターのすべての見出しがこのフィルターを通過するため、見出しを独自の言語に翻訳できます... →
- apply_filters woof_get_filtered_price_query ver.2.2.4/1.2.4以降 このフックは、他のプラグインとの互換性のために追加されました。 file: \classes\helper.php public static function get_filtered_price →
- apply_filters woof_get_meta_query このフックは、WOOF検索クエリでのメタクエリの操作を許可します:add_filter('woof_get_meta_query', function($meta_query) { //あなたのコードをここに追加 return $meta_query; }); v.2.2.1/1.2.1 から →
- apply_filters woof_get_more_less_button_XXXX このフックを使用して、サイトフロントの「トグルされていない用語数」機能のボタン表示を操作します。 XXXX は…に置き換えることができます。 →
- apply_filters woof_get_request_data プラグインの data-gate 機能で使用: index.php -> public function get_request_data() - これは、プラグインで検索リクエストデータを取得する最初の関数です。 →
- apply_filters woof_get_tax_query タクソノミー関係の操作に便利です。例えば、関係をORからANDに変更します。ダイナミックリカウントとは一緒に機能しません。index.php private function get_tax_query add_filter('woof_get_tax_query', 'my_woof_get_tax_query');… →
- apply_filters woof_get_terms_args ver.2.2.4/1.2.4以降 このフックは、他のプラグインとの互換性のために追加されました。 file: \classes\helper.php public static function get_terms →
- apply_filters woof_get_terms_order 検索フォームでタームを並べ替えるために使用します。classes/helper.php public static function get_terms woof_get_terms_orderby と組み合わせて使用 add_filter('woof_get_terms_order', function($taxonomy) { if ($taxonomy == 'pa_size')… →
- apply_filters woof_get_terms_orderby 検索フォームでタームを並べ替えるために使用されます。classes/helper.php public static function get_terms woof_get_terms_orderと組み合わせて使用されますadd_filter('woof_get_terms_orderby', function($taxonomy) { if ($taxonomy == 'pa_size') {… →
- apply_filters woof_html_types_view_checkbox バージョン2.2.4/1.2.4以降 このフックを使用して、ファイル:\views\html_types\checkbox.php の表示を書き換えることができます。 →
- apply_filters woof_html_types_view_mselect ver.2.2.4/1.2.4 より このフックを使用して、ファイル \views\html_types\mselect.php の表示を上書きできます。 →
- apply_filters woof_html_types_view_radio ver.2.2.4/1.2.4以降 このフックを使用して、file: \views\html_types\radio.php の表示を書き換えることができます →
- apply_filters woof_html_types_view_select ver.2.2.4/1.2.4 から このフックを使用して、ファイル \views\html_types\select.php の表示を上書きできます。 →
- apply_filters woof_husky_query_post__in v.2.2.9/v.1.2.9以降 Huskyフィルターには2つのモードがあります:search result with post__in を追加する(デフォルトで有効)。このモードの利点は信頼性です、なぜなら… →
- apply_filters woof_husky_query_post__in チケット https://pluginus.net/support/topic/filter-on-title-description-separate-sku-filter/ で要求された投稿 ID を使用して、テキストフィルターを操作できます。 →
- apply_filters woof_image_add_term_desc フィルター画像(プレミアム拡張機能)の場合 - ツールチップでのターム説明の表示/非表示を許可します。デフォルトは true です。add_filter('woof_image_add_term_desc', function($tax_slug) { return false; }, 10, 1); [inpost_fancy thumb_width="200" thumb_height="200"… →
- apply_filters woof_init_archive_by_default Allows to disable 'Enable archives' in product attributes if it is necessary do programmatically on the fly add_filter('woof_init_archive_by_default', function($is) { return false; }, 99, 1);… →
- apply_filters woof_main_query_tax_relations このフックは、WOOF 検索リクエスト内の任意のタクソノミーに 'AND' ロジックを設定できます。現在の wp テーマの functions.php ファイルで使用してください: add_filter('woof_main_query_tax_relations', 'my_woof_main_query_tax_relations');… →
- apply_filters woof_max_price_filter このフックにより、HUSKY 価格フィルターの最大価格を独自のロジックで設定できます。現在の WordPress の functions.php ファイルに次のコードを使用します… →
- apply_filters woof_min_price_filter This hook allows to set minimum price for HUSKY price filter by your own logic Use next code in file functions.php of the current WordPress… →
- apply_filters woof_not_sort_checked_terms このフックは、プラグインの index.php の public function woof_sort_terms_is_checked に配置され、「Let's checked terms…」オプションの影響から html-types を除外することを可能にします。 →
- apply_filters woof_order_catalog v.2.2.4/1.2.4 からカタログのカスタムソートを追加できます →
- apply_filters woof_price_slider_html 何らかの理由でWOOF検索フォームのネイティブなwoo価格スライダーを再作成したい場合。classes/helper.php public static function price_filter apply_filters('woof_price_slider_html', $price_slider_html, $price_slider_data); →
- apply_filters woof_print_content_before_redraw_zone v.2.2.4/1.2.4以降 AJAXによって再描画されない、ビジネス用HTMLメッセージを製品の上に配置できます。 →
- apply_filters woof_print_content_before_search_form このフックにより、WOOF 検索フォームのアイテムの前に任意のコンテンツを印刷できます。例: add_filter('woof_print_content_before_search_form', function($content) { global $WOOF; if ($WOOF AND woof()->is_isset_in_request_data(woof()->get_swoof_search_slug())) { return… →
- apply_filters woof_print_label_attributes チェックボックスとラジオボタンのタグラベルにカスタム属性を追加することを許可します。チケット https://pluginus.net/support/topic/aria-describedby/#postid-82977 で要求されています。例: add_action('woof_print_label_attributes', function ($term) { echo"aria-descrybedby aria-name='{$term['name']}'"; }); →
- apply_filters woof_products_query [woof_products] ショートコードで1回だけ使用します。カスタム操作には必要です。[inpost_fancy thumb_width="200" thumb_height="200" post_id="267" thumb_margin_left="5" thumb_margin_bottom="5" thumb_border_radius="200" thumb_shadow="0 1px 4px rgba(0, 0, 0,… →
- apply_filters woof_products_top_panel_content Ver.2.2.4/1.2.4 から、フィルタリング結果の上部に任意のビジネスコンテンツを表示するため →
- apply_filters woof_qs_get_template_structure 拡張機能の場合:クイック検索 テーブルの列ヘッダーを変更できます。例:add_filter('woof_qs_get_template_structure', 'change_title'); function change_title($data) { if (isset($data['price'])) { $data['price']['title'] = "Price of… →
- apply_filters woof_qs_shortcode_data 拡張機能「クイック検索」の場合、ページを読み込む前にテンプレートパラメータを変更する必要があります。たとえば、デバイスに応じて。 [inpost_fancy thumb_width="200" thumb_height="200"… →
- apply_filters woof_qs_sort_select_data 拡張機能の場合: クイック検索 テーブルのソートヘッダーを変更できます (ドロップダウンで提示されるフォームでのソート時) add_filter('woof_qs_sort_select_data', 'change_title'); function change_title($data) { if… →
- apply_filters woof_quick_search_products_limit デフォルトでは、製品の数は 10,000 に制限されています。ただし、この値を拡張できます:add_filter('woof_quick_search_products_limit', function($count){ return 30000; }); ただし、より多くの製品… →
- apply_filters woof_redraw_elements_after_ajax AJAX モードでユーザーがフィルタリングを行う際に、任意のメッセージを追加できます。例: add_filter('woof_redraw_elements_after_ajax', function($fields, $query) { ob_start(); if (isset($query->query['tax_query']) AND $query->query['tax_query']) { $html =… →
- apply_filters woof_seo_do_index Hook woof_seo_do_index は、SEO URL の拡張用です。これは、より柔軟なインデックス作成制御のためです。たとえば、ユーザーはインデックスを作成したくないのは… →
- apply_filters woof_seo_meta_description 目的:フィルター処理された製品ページのメタディスクリプションタグを変更します。このフックを使用すると、アクティブなWOOFがあるページの`<meta name="description">`コンテンツをカスタマイズできます... →
- apply_filters woof_set_shortcode_taxonomyattr_behaviour このフックは、プラグインの index.php の public function woof_shortcode で機能し、'additional_taxes' を操作できます。[inpost_fancy thumb_width="200" thumb_height="200" post_id="1064" thumb_margin_left="5" thumb_margin_bottom="5" thumb_border_radius="200" thumb_shadow="0… →
- apply_filters woof_slider_meta_query_type Hook woof_slider_meta_query_type はメタスライダー値のタイプ用です。たとえば、10進値の場合:add_filter('woof_slider_meta_query_type',function($type,$key){ return "DECIMAL(5,3)"; },2,10); [inpost_fancy thumb_width="200" thumb_height="200" post_id="1620" thumb_margin_left="5" thumb_margin_bottom="5" thumb_border_radius="200" thumb_shadow="0 1px… →
- apply_filters woof_sort_terms_before_out チェックボックスやラジオなどの HTML タイプで、必要に応じてタームの配列を操作します。$terms = apply_filters('woof_sort_terms_before_out', $terms, 'checkbox'); wp-content\plugins\woocommerce-products-filter\views\html_types\checkbox.php →
- apply_filters woof_sort_terms_checked →
- apply_filters woof_start_filtering_btn_txt 「Show products filter form」ボタンのフック。ショートコード [woof start_filtering_btn=1] で表示されます。 add_filter('woof_start_filtering_btn_txt', function($txt){ return "Load form!!"; }); v.2.1.6 より →
- apply_filters woof_step_filter_img_size v.2.2.4/1.2.4 より woof ステップフィルターでの画像リサイズ用。add_filter('woof_step_filter_img_size', function($size) { $size = 'large'; //thumbnail, medium, large, full, array(200, 200) //woocommerce_thumbnail ,woocommerce_single, woocommerce_gallery_thumbnail を返します... →
- apply_filters woof_taxonomy_image 現在の状況に応じて画像フィルタータームの画像をその場で再定義できます add_filter('woof_taxonomy_image', function($image, $term) { // 画像を変更… →
- apply_filters woof_template_part ショートコード [woof_products] でテンプレートを動的に変更できます [inpost_fancy thumb_width="200" thumb_height="200" post_id="1235" thumb_margin_left="5" thumb_margin_bottom="5" thumb_border_radius="200" thumb_shadow="0 1px 4px rgba(0, 0, 0, 0.2)"… →
- apply_filters woof_terms_where_hidden_childs child's terms を完全に非表示にしたい場合に、任意の term に child's terms を使用します。 checkboxes, radio, select, mselect, labels にて。 add_filter('woof_terms_where_hidden_childs', function($term_id) { $hide_array=array(11,22,33,44,55,66,77); if (in_array($term_id,… →
- apply_filters woof_term_count_format カウンターのフォーマットを変更できるようにしました – デフォルトでは「(%d)」が送信されます。例:add_filter('woof_term_count_format', function ($format, $tax_slug) { $format = '|%d|'; return $format;… →
- apply_filters woof_text_autocomplete_items テキストテキスト入力のオートコンプリート機能はいくつ返しますか? add_filter('woof_text_autocomplete_items', function($count){ return 5; }); →
- apply_filters woof_text_search_like_option これはテキスト検索の動作を調整し、デフォルトでFALSEを返します。TRUEを返す場合、テキスト検索は特殊文字を考慮せずに機能します… →
- apply_filters woof_text_search_query テキスト検索 SQL リクエストをその場で再定義できます add_filter('woof_text_search_query', function($where, $woof_text) { global $wpdb; $where .= "AND $wpdb->posts.ID IN(15,39,121)"; return $where; }, 99,... →
- apply_filters woof_title_tag 各タクソノミーブロックのタイトルタグH4を別のHTMLタグに再定義したい場合は、フックwoof_title_tagを使用します。例:add_filter('woof_title_tag', function($tag){ return 'h5'; });… →
- apply_filters woof_turbo_mode_schedules フック woof_turbo_mode_schedules(v.3.3.6以降)では、ターボモードでの商品パラメータ更新のカスタム期間を追加できます。コード例:add_filter('woof_turbo_mode_schedules', function($schedules) { $schedules['your_custom_period_key'] = array( 'name'... →
- apply_filters woof_use_wp_cache Hook woof_use_wp_cacheは、より最適化されたオブジェクトキャッシュwp-cacheを有効にするためのものです。テストで良好な結果を示しました。注意:必須でインストールされている必要があります… →
- apply_filters woof_widget_title_tag タイトルタグH3を他のHTMLタグに変更したい場合は、フック woof_widget_title_tag を使用してください。例: add_filter('woof_widget_title_tag', function($tag){ return 'h4'; }); →