Try to add the following PHP code snippet to the child theme functions.php file to do this
if ( ! function_exists( 'woodmart_admin_localized_string_array_change' ) ) {
/**
* Create new template nonce for shop managers.
*
* @param array $localize_data List of woodmartConfig settings.
*/
function woodmart_admin_localized_string_array_change( $localize_data ) {
if ( current_user_can( 'edit_products' ) || current_user_can( 'edit_pages' ) ) {
$localize_data = array_merge(
$localize_data,
array(
'get_new_template_nonce' => wp_create_nonce( 'wd-new-template-nonce' ),
)
);
}
return $localize_data;
}
add_filter( 'woodmart_admin_localized_string_array', 'woodmart_admin_localized_string_array_change' );
}