Actions

do_action( 'slswc_license_expired_notifications', $this, $mailer );

Run hook before sending expired license notification.
This is mainly important for sending custom expired license notification emails or performing an action when sending expired emails.

Parameters:
$license – Instance of SLSWC_WooCommerce_License which the the license object.
$mailer – The WC_Mailer object responsible for sending the expired license notification email.

Example Usage:

<?php
add_action(
    'slswc_license_expired_notifications',
    function( $license, $mailer ) {
        $version = $license->get_software_version();
        $author  = $license->get_software_author();

        $mailer->send( <PARAMS> );
    }
);

do_action( 'slswc_after_load_woocommerce_hooks' );

Run hooks after loading WooCormerce hooks and filters. Load or add extra actions and hooks after the plugin has loaded it’s WooCommerce action hooks and filters.

Parameters: None

Example Usage:

<?php
add_action(
    'slswc_after_load_woocommerce_hooks',
    function() {
        // add more hooks and filters
    }
);


do_action( 'slswc_before_license_keys' );

Perform actions before listing license keys.

Can be used to process data or display more license data before the license key in customer account page.

Parameters: None

Example Usage:

<?php
add_action( 'slswc_before_license_keys', function() {
    echo '<p>License Keys Listed Below</p>';
} );

do_action( 'slswc_after_license_keys' );

Perform actions after listing license keys.

Can be used to process data or display more license data after the license key in customer account page.

Parameters: None

Example Usage:

<?php
add_action( 'slswc_after_license_keys', function() {
    echo '<p>License Keys Listed Above</p>';
} );
Was this article helpful?

Need Support?

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