slswc_get_license_types

Filter license types retrieved from database. This will be the defaults if there are no custom license types added.

Parameters:
array $license_types The license types retrieved from the database.

Example usage:

<?php
add_filter( 'slswc_get_license_types', function( $license_types ) {
    $license_types['decade'] = array(
        'duration' => 'P10Y',
        'label'    => __( 'Every Ten Years', 'text_domain' ),
    );

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

Related Articles

Need Support?

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