Support

Account

Home Forums Backend Issues (wp-admin) How to make a custom media button work with ACF? Reply To: How to make a custom media button work with ACF?

  • $(document).on('click', '.insert-reference', function (e) {
        e.preventDefault();
        modal.dialog('open');
    });

    This is a weird one. You need to capture the click form dom and filter by button 🙂