Support

Account

Home Forums ACF PRO Extend ACF Link Element data with RankMath Link options Reply To: Extend ACF Link Element data with RankMath Link options

  • Thanks, that confirms that ACF uses the standard WP popup.

    I cannot give you specifics, but it might be possible. When you save the value in the popup ACF saves each of the settings to a hidden field.

    You could use the acf/render_field action to create additional hidden fields following the same pattern as the current hidden fields.

    Then you could potentially detect that window closing or there might be an action in the ACF JS API that you can hook into that to get the values from the new settings and save them to your new hidden fields.

    I’m 99% sure that ACF will save these values as part of the array that it normally saves for a link field if they exist. But you might need to add an acf/update_field filter to add the values to the array.

    Then you can add an acf/format_value filter to return a link with these values added to it.