ACF Options Page

PHP
function my_acf_op_init() {
  if( function_exists('acf_add_options_page') ) {
    acf_add_options_page(array(
      'page_title'    => __('設定'),
      'menu_title'    => __('設定'),
      'menu_slug'     => 'setting-my',
      'icon_url'      => 'dashicons-code-standards',
      'redirect'      => false
    ));
  }
}
add_action('acf/init', 'my_acf_op_init');

Tags: