SLP® phpDocs

MySLP_Customer_Maintenance
in package

Class MySLP_Customer_Maintenance

The primary interface for this plugin. Sets up WordPress hooks and connects the other modules.

Includes the code to bastardize the standard WordPress Network Admin Users table. TODO: move the hack of the network users list to a separate class that only loads when that page is loaded.

Table of Contents

Methods

__construct()  : mixed
MySLP_Customer_Maintenance constructor.
add_list_customers_screen_options()  : mixed
Add screen options to list customers.
add_myslp_column()  : mixed
Add new "Plan" column
add_view_link()  : mixed
Add new action link on users table
admin_script()  : void
Hook scripts/style for admin
customer_management()  : mixed
Customer Management Screen
display_myslp_column_data()  : string|null
Display account status column content
error_updating_profile()  : mixed
Add a user update error message.
menu()  : mixed
Add submenu. Use null on parent so it will hide on menu nav
myslp_profile_fields()  : mixed
Display account status field on user profile page Called From WordPress User Edit (SysAdmin)
on_grant_super_admin()  : void
If the existing user has been granted for Super Admin capability Update the account status to active
on_revoke_super_admin()  : void
If the existing Super Admin has been revoked Check the expiration date and update the status accordingly
our_cron_list()  : mixed
Our cron list.
our_customer_list()  : mixed
Our customer list.
rename_user_menu()  : mixed
Change the 'User' menu label to 'Customers'
save_list_customers_screen_options()  : mixed
Save screen options to list customers.
sysadmin_view_profile()  : mixed
SysAdmin View Profile
update_myslp_profile_management()  : mixed
Update myslp subscription options (Super Admin only)
add_customer_profile_view_page()  : mixed
Add the View Customer Profile Page when using View Profile from the main customer list.
level_conversion()  : mixed
Convert SA level/subscription from ID to name or vice versa

Methods

add_list_customers_screen_options()

Add screen options to list customers.

public add_list_customers_screen_options() : mixed

add_myslp_column()

Add new "Plan" column

public add_myslp_column(mixed $columns) : mixed
Parameters
$columns : mixed

Add new action link on users table

public add_view_link(mixed $actions, mixed $user_object) : mixed
Parameters
$actions : mixed
$user_object : mixed

display_myslp_column_data()

Display account status column content

public display_myslp_column_data(mixed $empty, mixed $column_name, mixed $user_id) : string|null
Parameters
$empty : mixed
$column_name : mixed
$user_id : mixed
Return values
string|null

error_updating_profile()

Add a user update error message.

public error_updating_profile(mixed &$errors, mixed $update, mixed &$user) : mixed
Parameters
$errors : mixed
$update : mixed
$user : mixed

myslp_profile_fields()

Display account status field on user profile page Called From WordPress User Edit (SysAdmin)

public myslp_profile_fields(mixed $user) : mixed
Parameters
$user : mixed

on_grant_super_admin()

If the existing user has been granted for Super Admin capability Update the account status to active

public on_grant_super_admin(string $user_id) : void
Parameters
$user_id : string

on_revoke_super_admin()

If the existing Super Admin has been revoked Check the expiration date and update the status accordingly

public on_revoke_super_admin(string $user_id) : void
Parameters
$user_id : string

save_list_customers_screen_options()

Save screen options to list customers.

public save_list_customers_screen_options(mixed $status, mixed $option, mixed $value) : mixed
Parameters
$status : mixed
$option : mixed
$value : mixed

update_myslp_profile_management()

Update myslp subscription options (Super Admin only)

public update_myslp_profile_management(int $user_id) : mixed
Parameters
$user_id : int
Tags
used-by

WP action hook: personal_options_update

used-by

WP action hook: update_myslp_profile_management

add_customer_profile_view_page()

Add the View Customer Profile Page when using View Profile from the main customer list.

private add_customer_profile_view_page() : mixed

level_conversion()

Convert SA level/subscription from ID to name or vice versa

private level_conversion(mixed $level) : mixed
Parameters
$level : mixed

        
On this page

Search results