Home Forums Backend Issues (wp-admin) Edit-Tags.php – Quick Edit ACF Field


Edit-Tags.php – Quick Edit ACF Field

  • On the Edit-Tags.php page – I’ve added a ACF Checkbox (True/False) for any tags in this Custom Taxonomy. I’ve also included the ACF Field in the Columns.

    So currently the only way to change the ACF Checkbox value is to actually edit the tag. Which works but not the ideal user experience.

    The goal is to be able to edit the ACF Checkbox Value using the Quick Edit feature in WordPress.

    I did find a good starting tutorial:

    Though I’m struggling with saving the value specifically for the ACF Field.

    Has anyone done this before or has any insight?

    Appreciate all the help the Forum provides.

  • Where this code is in what you shared

    $description = filter_input( INPUT_POST, 'description', FILTER_SANITIZE_STRING );
    // removing action to avoid recursion
    emove_action( current_filter(), __FUNCTION__ );
    wp_update_term( $term_id, $the_target_tax, array( 'description' => $description ) );

    You need to get the value of the field and then use the following to update the field

    update_field($field_key, $value, 'term_'.$term_id);
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.