Support

Account

Home Forums ACF PRO Submitted images not retrieved in acf_form

Solved

Submitted images not retrieved in acf_form

  • I thought of that myself, but was hoping to there would be a function available. thanks.

  • I have found the culprit…. although I don’t understand quite why it interferes.

    This messed it all up:

    
    function redirect_user_to( $redirect_to ) {
        global $current_user;
        wp_get_current_user();
        if ( ! current_user_can( 'manage_options' ) ) {
            $redirect_to = wp_redirect( home_url() . '/profile/' );
            exit;
        }
    }
    add_action( 'admin_init', 'redirect_user_to', 1 );
    
Viewing 2 posts - 26 through 27 (of 27 total)

The topic ‘Submitted images not retrieved in acf_form’ is closed to new replies.