I'm trying to get an existing Redux field to work with selective refresh in customizer but can't find any documentation or examples on the web.
I've managed to figure out that the 'id' used by $wp_customize->selective_refresh->add_partial() is $opt_name['field-id'] and got the Edit button to appear and link to the correct section in the Customizer, but that's as far as I got.
I'm trying to get a sortable field type to work but I have no clue what to do to stop it from refreshing the page and to reflect the value of the checkbox.
Hi,
I'm trying to get an existing Redux field to work with selective refresh in customizer but can't find any documentation or examples on the web.
I've managed to figure out that the 'id' used by
$wp_customize->selective_refresh->add_partial()
is$opt_name['field-id']
and got the Edit button to appear and link to the correct section in the Customizer, but that's as far as I got.I'm trying to get a sortable field type to work but I have no clue what to do to stop it from refreshing the page and to reflect the value of the checkbox.
and the callback
and outputting with