Apps Ballance Cash_2 Chat Checkout Click Code Cog_Wheels Compose_email Conference Contacts Earth Edit_File_1_ Email Email_2 File Folder_2 Gift Group Group_2 Help ID ID_2 Key Keys Laptop_Store Like_1_ Link Lock Log_Out Map Marketing Mobile_UI Navigation POS Partnership Profile Safe_2 Search_User Secure_Files Settings Share Shield Shield_2 Shopping_Cart Support_Male Trash Type_pin User_female User_male logo copy

Introduction for developers to WP User Manager

Iain Poulson avatar
Iain Poulson Last updated on March 6, 2021

WP User Manager has been coded with developers in mind, the code is well laid out, easy to read, and documented. The source code for WPUM is also highly extensible, which makes it easy for developers to hook in custom functionalities, or modify existing parts of the plugin.

Github – For Tracking

The entire source code of WP User Manager is available on Github. This is also the place where bugs and enhancements are tracked. Furthermore milestones are created as an easy way to track features and fixes that are released with each new update.

Code Organization

The source of code of WP User Manager is organized in separate, meaningfully named files and folders. For example, all functions, filters and actions related to “User Directories” can be found into the sub folder “includes/directories”. In this folder you will find additional files named after it’s purpose. For example: the functions.php file into the “directories” subfolder contains all the functions for working with user directories.  

Functions and Classes naming

All functions, with no exception, are prefixed with “wpum_”. This helps ensure that the plugin does not cause any conflict with other plugins or functions with similar/same names.

For example, do not create functions named like this:

function my_function() {
	// Your code here
}

Instead, you should do this:

function wpum_my_function() {
	// Your code here
}

PHP Classes should also follow the same naming rules.

Submitting your addons

If you have written a custom addon and you wish to be listed onto the wpusermanager.com website, please
get in touch so I can review it for you.

WP User Manager logo

Get Started with the Best WordPress Membership Plugin Today

Connect, Manage and Build your Membership Site

Need more help?

If you still didn't find an answer you can always contact us

Submit a ticket