Proper use of option_page_capability_{$page_name}

So in this hook is not exactly looking for the {$page_name}. Once I replaced the {$page_name} part of this filter to the {$option_group} parameter from my register_settings() function, all is well in the land of WordPress. Here is what my update needed to look like.

function bf_ins_capability(){
  return 'edit_posts';
}

add_filter( 'option_page_capability_bf_insurance_settings', 'bf_ins_capability');

Leave a Comment