Support

Account

Home Forums Bug Reports ACF PRO: Possible bug in acf/save_post Reply To: ACF PRO: Possible bug in acf/save_post

  • Hello Elliot

    The suggested validate logic is not solving the issue for me unfortunately. Any chance of bringing back the save_post logic or any specific reason you’ve removed it? I was generating a stylesheet upon Options Save with the following code:

    function generate_stylesheet() {
      // Generate stylesheet
    }
      
    // After theme options save
    add_action('acf/save_post', 'generate_stylesheet', 20);

    .. so it was dependent on the action to run AFTER the Save as all the new values needs to be fully saved in db before it triggers the stylesheet creation.

    If acf/save_post after action is gone forever, what would be your recommendation for a comparable solution in my case?

    Thanks!