Hide field in backend
-
A review suggested that it would be nice to hide this field in the backend and I agreed. Here’s a quick solution:
1) Enqueue a custom stylesheet for the WP admin:
function my_admin_theme_style() { wp_enqueue_style('my-admin-style', get_template_directory_uri() . '/css/admin-styles.css'); } add_action('admin_enqueue_scripts', 'my_admin_theme_style');
2) Add something like this, depending on your case:
td.acf-field-unique-id, th.acf-th-unique_id{ display:none; }
3) Make the column width very small.
- The topic ‘Hide field in backend’ is closed to new replies.