Property | Type | Description | |
---|---|---|---|
$instance | object | Instance of this class. |
Method | Description | |
---|---|---|
__construct ( ) | ||
auto_assignment_user_column ( array $columns ) : mixed | Add auto-assignment column in users table | |
auto_assignment_user_column_content ( mixed $value, string $column_name, integer $user_id ) : string | Add auto-assignment user column content | |
enable_assignment ( integer $user_id ) : void | Enable auto-assignment for new agents | |
get_instance ( ) : object | Return an instance of this class. | |
maybe_enable_assignment ( integer $user_id, array $old_data ) : void | Maybe enable auto assignment for this user | |
profile_field_after_reply ( WP_User $user ) : void | User profile field "after reply" | |
profile_field_agent_department ( WP_User $user ) : void | User profile field "departments" | |
profile_field_smart_tickets_order ( WP_User $user ) : void | User profile field "tickets order" | |
profile_field_user_can_be_assigned ( WP_User $user ) : void | User profile field "can be assigned" | |
save_user_custom_fields ( integer $user_id ) : void | Save the user preferences. | |
user_profile_custom_fields ( WP_User $user ) : boolean | void | Add user preferences to the profile page. |
public auto_assignment_user_column ( array $columns ) : mixed | ||
$columns | array | |
return | mixed |
public enable_assignment ( integer $user_id ) : void | ||
$user_id | integer | |
return | void |
public static get_instance ( ) : object | ||
return | object | A single instance of this class. |
public profile_field_after_reply ( WP_User $user ) : void | ||
$user | WP_User | |
return | void |
public profile_field_agent_department ( WP_User $user ) : void | ||
$user | WP_User | |
return | void |
public profile_field_smart_tickets_order ( WP_User $user ) : void | ||
$user | WP_User | |
return | void |
public profile_field_user_can_be_assigned ( WP_User $user ) : void | ||
$user | WP_User | |
return | void |
public save_user_custom_fields ( integer $user_id ) : void | ||
$user_id | integer | ID of the user to modify |
return | void |
public user_profile_custom_fields ( WP_User $user ) : boolean | void | ||
$user | WP_User | |
return | boolean | void |
protected static object $instance | ||
return | object |