LoginSignup
1
2

More than 5 years have passed since last update.

WordPressのACF Pro でのOptionsの表記を変更する

Posted at

functions.phpとかに下を書く

if ( function_exists( 'acf_add_options_page' ) ) {

    acf_add_options_page(array(
        'page_title'     =>__( '好きな名前' ),
        'menu_title'    =>__( '好きな名前' ),
        'menu_slug'     => 'acf-options',
    ));

}

普通のACF + ACF-Optionsの場合はこんな感じでいけるはず
※ちょっと手抜きなんでサブメニュー使う場合は引数ちゃんとみてね

if(is_admin()) {
    add_filter( 'acf/options_page/settings', 'my_options_page_settings' );
    function my_options_page_settings( $options ) {
        $options['title'] = __( '好きな名前' );
        $options['menu'] = __( '好きな名前 );
        return $options;
    }
}
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2