Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail

Package s2Member\Admin_Notes

s2member\includes\classes\user-notes.inc.php at line #28

Class c_ws_plugin__s2member_user_notes

c_ws_plugin__s2member_user_notes

public class c_ws_plugin__s2member_user_notes

Administrative notes.

Since:

3.5


( 2 Methods )
Method Summary
public static str

append_user_notes(int|str $user_id, str $notes)

Appends a note onto a specific User/Member's account.

public static str

clear_user_note_lines(int|str $user_id, str $regex)

Clear specific notes from a User/Member's account; based on line-by-line regex.

( 2 Methods )
Method Detail

s2member\includes\classes\user-notes.inc.php at line #40

append_user_notes()

public static str append_user_notes(int|str $user_id, str $notes)

Appends a note onto a specific User/Member's account.

Since:

3.5

Parameters:

int|str $user_id - A numeric WordPress® User ID.

str $notes - The string of notes to append. One note, or many.

Returns:

str - The full set of notes, including appendage.

[ back to top ]

s2member\includes\classes\user-notes.inc.php at line #69

clear_user_note_lines()

public static str clear_user_note_lines(int|str $user_id, str $regex)

Clear specific notes from a User/Member's account; based on line-by-line regex.

Since:

3.5

Parameters:

int|str $user_id - A numeric WordPress® User ID.

str $regex - A regular expression to match against each line.

Returns:

str - The full set of notes, after clearing.

[ back to top ]

Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail