Support

Account

Home › Forums › Add-ons › Options Page › acf/save_post for specific options page › Reply To: acf/save_post for specific options page

  • Of course. I have five different option pages.
    Create a function for each option page with the the condition above and replace the string “acf-options-adverts” with the slug of the attached option page (you may have a look in the url-bar of each page).

    In your case for example I could imagine the code to look like this:

    if (strpos($screen->id, "acf-options-product") == true) {…
    if (strpos($screen->id, "acf-options-service") == true) {…
    if (strpos($screen->id, "acf-options-theme-option") == true) {…