Home Forums Feature Requests acf_form() return placeholders


acf_form() return placeholders

  • I am developing a feature making use of the acf_form function

    The ‘return’ argument can be set to a URL, and you can use %post_url% to get the url for the new post (if you are creating a new post as I am).

    It would be wonderful if a second placeholder was added to get the new post ID. Like %post_id% so that I could use this ID in my custom rewrite rules like:

    It looks like this could be easily added into api-template.php right after line #996

    $form['return'] = str_replace('%post_id%', $form['post_id'], $form['return']);

    Thanks for your consideration!

Viewing 1 post (of 1 total)

The topic ‘acf_form() return placeholders’ is closed to new replies.