Tusko / ACF-CPT-Options-Pages

Small addon for ACF Options. Adds ACF options page per custom post type
GNU General Public License v3.0
74 stars 15 forks source link

Overriding label in admin #11

Closed bmcleod closed 6 years ago

bmcleod commented 6 years ago

As per the readme, I've added the following code to my functions.php. "locations" is the name of my custom post type. I cannot seem to get it to work. Any suggestions?

function locations_customize($cptmenu) {
    $cptmenu['page_title'] = 'Dev Custom title';
    $cptmenu['menu_title'] = 'Dev Custom title';
    return $cptmenu;
}

add_filter('locations_acf_page_args', 'locations_customize');
aldsdelram commented 6 years ago

Hi Blake,

You need to add the prefix cpt_ on your filter. addfilter('**cpt**locations_acf_page_args', 'locations_customize');

Hope this would help!