In my site I'm using the Product Archive Customizer plugin for WooCommerce. Great plugin. However, there is an option to set the qty of products shown per page. The next piece of code is responsible for that:
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'wc_pac_products_per_page', array(
'label' => __( 'Products per page', 'woocommerce-product-archive-customiser' ),
'section' => 'wc_pac',
'settings' => 'wc_pac_products_per_page',
'type' => 'select',
'choices' => array(
'2' => '2',
'3' => '3',
----------
'23' => '23',
'24' => '24',
),
) ) );
I do want to add another qty to the 'choices' array and I'm told it is bad practice to add that in the original plugin file. In that case it will be overwritten with an update of the plugin.
I read up on a lot of array related topics but I can't get it under my thick skull.
What code do I have to add to my themes functions.php file to achieve that?