wordpress-website-lifecycle/mu-plugins/advanced-custom-fields.php
Viktor Szépe 59b7eca4c3
Some checks failed
Back-end / Syntax errors (push) Failing after 1s
Spelling / 文A Typos check (push) Failing after 1m30s
Integrity / Integrity (push) Has been cancelled
Hide ACF Pro features callout (#37)
2026-07-19 12:09:31 +02:00

30 lines
552 B
PHP

<?php
/*
* Plugin Name: Hide ACF admin pages
* Plugin URI: https://github.com/szepeviktor/wordpress-website-lifecycle
*
* Add-ons
*
* - acf-gravityforms-add-on
*
* @see https://awesomeacf.com/
*/
add_filter(
'acf/settings/show_admin',
'__return_false',
10,
0
);
// Export fields to .acf/acf-export.json and as code to inc/acf-fields.php
add_action(
'admin_footer',
static function () {
echo '<style>#tmpl-acf-field-group-pro-features { display: none !important; }</style>';
},
PHP_INT_MAX,
0
);