SLP® phpDocs

MySLP_History
in package

Class MySLP_History

Table of Contents

Constants

RECENT_HISTORY  = 15

Properties

$myslp  : MySLP

Methods

__construct()  : mixed
MySLP_History constructor.
account_expired_log()  : void
Log the account that just expired.
account_problem_log()  : void
Account Problem Log
admin_scripts()  : void
Add admin scripts
log()  : void
Actual insertion of log messages to database Uses static function for easier call
log_account_created()  : void
log_account_renewed()  : void
Fires when SA::check_account_limit finds a renewed subscription.
log_deleted_customer()  : void
Using the 'wpmu_delete_user' hook. This hook fired "before" the actual user deleted log the user that has been deleted by Super Admin
log_extended_plan()  : void
Fires when myslp_extend_plan is wrapping up.
log_payment_changed()  : void
STRIPE: Log change in payment details.
log_recurring_payment_failed()  : void
Using 'myslp_recurring_payments_failed' hook, log if the recurring payment is failed
log_recurring_payment_success()  : void
Using the 'myslp_recurring_payments_success' hook, log if the recurring payment is successful
log_subscription_cancelled()  : void
Log subscription cancellation.
log_subscription_changed()  : void
Log subscription changes.
register_menu()  : void
Register menu. This is only accessible on the Network Admin page.
hooks()  : void
Plugin scipt and hook for actions/filters etc.
init()  : void

Constants

Properties

Methods

__construct()

MySLP_History constructor.

public __construct([array<string|int, mixed> $data = array() ]) : mixed
Parameters
$data : array<string|int, mixed> = array()

account_expired_log()

Log the account that just expired.

public account_expired_log(int $expired, int $time_of_event) : void

Only called from MySLP Dashboard Controller in Site Architect via check_account_limit() Only logs if expired in the past month (31 days).

Parameters
$expired : int
$time_of_event : int
Tags
hook

myslp_after_update_account_status_expired

account_problem_log()

Account Problem Log

public account_problem_log(string $current_status, string $subscription_status, int $time_of_event) : void
Parameters
$current_status : string
$subscription_status : string
$time_of_event : int

admin_scripts()

Add admin scripts

public admin_scripts(mixed $hook) : void
Parameters
$hook : mixed

log()

Actual insertion of log messages to database Uses static function for easier call

public static log(mixed $header, mixed $message[, string $blogid = "" ]) : void
Parameters
$header : mixed
$message : mixed
$blogid : string = ""

log_account_created()

public log_account_created(int $user_id) : void
Parameters
$user_id : int

log_account_renewed()

Fires when SA::check_account_limit finds a renewed subscription.

public log_account_renewed(int $expired, int $time_of_event) : void
Parameters
$expired : int
$time_of_event : int

log_deleted_customer()

Using the 'wpmu_delete_user' hook. This hook fired "before" the actual user deleted log the user that has been deleted by Super Admin

public log_deleted_customer(mixed $user_id) : void
Parameters
$user_id : mixed

log_extended_plan()

Fires when myslp_extend_plan is wrapping up.

public log_extended_plan(string $user_ID, string $blog_ID) : void
Parameters
$user_ID : string
$blog_ID : string
Tags
hook

myslp_after_extend_plan

log_payment_changed()

STRIPE: Log change in payment details.

public log_payment_changed() : void
Tags
uses
MySLP_Recurring_Payments::get_customer_card_details

log_recurring_payment_failed()

Using 'myslp_recurring_payments_failed' hook, log if the recurring payment is failed

public log_recurring_payment_failed(int $user_id, array<string|int, mixed> $payment_data) : void
Parameters
$user_id : int
$payment_data : array<string|int, mixed>

log_recurring_payment_success()

Using the 'myslp_recurring_payments_success' hook, log if the recurring payment is successful

public log_recurring_payment_success(int $user_id) : void
Parameters
$user_id : int

log_subscription_cancelled()

Log subscription cancellation.

public log_subscription_cancelled() : void

log_subscription_changed()

Log subscription changes.

public log_subscription_changed(array<string|int, mixed> $subscription, string $original_value) : void
Parameters
$subscription : array<string|int, mixed>
$original_value : string

register_menu()

Register menu. This is only accessible on the Network Admin page.

public register_menu() : void

See the 'network_admin_menu' hook on hoks()


        
On this page

Search results