特定のフィールドを非表示(登録情報では表示))
add_filter( 'wpmem_fields', 'my_wpmem_fields_filter', 10, 2 );
function my_wpmem_fields_filter( $fields, $tag ) {
if ( 'register' == $tag ) {
unset( $fields['payment_day'] );
}
return $fields;
}
(解説)
add_filter( 'wpmem_fields', 'my_wpmem_fields_filter', 10, 2 );
function my_wpmem_fields_filter( $fields, $tag ) {
if ( 'register' == $tag ) {
unset( $fields['payment_day'] );
↑ フォームフィールドをセットしないコマンド payment_day フィールドを非表示
}
return $fields;
}
