wsf_licensing_log_pathPRO

Description

The wsf_licensing_log_path filter hook allows you to determine where the licensing activity log is written to. The path is relative to the WS Form uploads directory. The directory will be created automatically if it does not already exist, provided the web server has write permissions.

The default logging path is:

wp-content/ws-form/licensing/licensing.log

A full description of its use can be found here:

Usage

add_filter( 'wsf_licensing_log_path', 'my_hook_function', 10, 1 );

Parameters

  1. $path String
    The path relative to the WS Form uploads directory.

Example

// Change the license logging to /wp-content/ws-form/licensing/licensing_2.log
add_filter( 'wsf_licensing_log_path', function( $path ) {
    return 'licensing/licensing_2.log';
} );

 

Source File

This hook can be found in: <plugin root>/includes/class-ws-form-licensing.php