first commit
This commit is contained in:
22
wp-content/mu-plugins/acf-options-pages.php
Normal file
22
wp-content/mu-plugins/acf-options-pages.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* Register ACF options pages.
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
add_action('acf/init', function () {
|
||||
if (!function_exists('acf_add_options_page')) {
|
||||
return;
|
||||
}
|
||||
|
||||
acf_add_options_page([
|
||||
'page_title' => 'Site Settings',
|
||||
'menu_title' => 'Site Settings',
|
||||
'menu_slug' => 'site-settings',
|
||||
'capability' => 'edit_posts',
|
||||
'redirect' => false,
|
||||
]);
|
||||
});
|
||||
Reference in New Issue
Block a user