1. Home
  2. Knowledge Base
  3. Developer
  4. Filters
  5. slswc_software_license_product_fields


Modify the license product fields. This allows to modify the form fields for the license tab in the product editor.

array $fields The license product fields.

Example Usage:

add_filter( 'slswc_software_license_product_fields', function( $fields ) {
    $fields['opensource_url'] = array (
        'label'       => __( 'Opensource URL', 'text_domain' ),
        'description' => __( 'Link to opensource project for this software', 'text_domain' ),
        'class'       => 'short',
        'field_type'  => 'input',

    return $fields;
} );
Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support
Scroll to Top