Skip to content

Instantly share code, notes, and snippets.

@webdados
Created November 28, 2018 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webdados/8e1f1a893ca296300595f9b05318ef20 to your computer and use it in GitHub Desktop.
Save webdados/8e1f1a893ca296300595f9b05318ef20 to your computer and use it in GitHub Desktop.
Add sections / fields to Invoicing with InvoiceXpress for WooCommerce - Pro
<?php
add_filter( 'invoicexpress_woocommerce_settings_tabs', 'my_invoicexpress_woocommerce_settings_tabs' );
function my_invoicexpress_woocommerce_settings_tabs( $tabs ) {
$tabs['temp'] = array(
'title' => 'TEMP',
'sections' => array(
'temp_one' => array(
'title' => 'Section one',
'description' => 'Section one description',
'fields' => array(
'hd_wc_ie_plus_section_one_field_one' => array(
'title' => 'Field one',
'description' => 'Field one description',
'type' => 'text',
)
),
),
)
);
return $tabs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment