usces_filter_custom_field_input_label / フィルターフック

usces_custom_field_input() で表示するカスタムフィールドのラベルに文字列やタグを追加

説明

usces_custom_field_input() で表示するカスタムフィールドのラベルに、文字列やタグを追加できます。書き換えることはできません。

使い方

add_filter( 'usces_filter_custom_field_input_label',  'my_filter_custom_field_input_label', 10, 3 );
function my_filter_custom_field_input_label( $html, $key, $entry ) {
    //処理
    return $html;
}

パラメータ

$html
(文字列)初期値 NULL
$key
(文字列)カスタムフィールドキー
$entry
(配列)カスタムフィールド情報

用例

ソースファイル

usc-e-shop/functions/template_func.php

関連資料

  • usces_custom_field_input()