acf_admin_field_group::screen_settings
Screen settings html output
Method of the class: acf_admin_field_group{}
No Hooks.
Returns
String. $html
Usage
$acf_admin_field_group = new acf_admin_field_group(); $acf_admin_field_group->screen_settings( $html );
- $html(string) (required)
- Current screen settings HTML.
Changelog
| Since 3.6.0 | Introduced. |
acf_admin_field_group::screen_settings() acf admin field group::screen settings code ACF 6.0.4
public function screen_settings( $html ) {
// vars.
$checked = acf_get_user_setting( 'show_field_keys' ) ? 'checked="checked"' : '';
// append.
$html .= '<div id="acf-append-show-on-screen" class="acf-hidden">';
$html .= '<label for="acf-field-key-hide"><input id="acf-field-key-hide" type="checkbox" value="1" name="show_field_keys" ' . $checked . ' /> ' . __( 'Field Keys', 'acf' ) . '</label>';
$html .= '</div>';
// return.
return $html;
}