slswc_get_licenses

Filters the license before being displayed on the licenses table.

Parameters:

array $all_licenses All the licenses retrieved to be displayed on the table.

Example usage: Access and modify properties of a license.

<?php
add_filter( 'slswc_get_licenses', function( $all_licenses ) {
    foreach ( $all_licenses as $license  ) {
        $title = $license->get_software_title();
        $key   = $license->get_license_key();
    }

    // Do something with all_licenses
    return $all_licenses;
});
Was this article helpful?

Related Articles

Need Support?

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