Embed memberships for WordLand theme and plugins

dev-master 2021-04-29 10:47 UTC

This package is auto-updated.

Last update: 2022-04-29 01:29:21 UTC


Use Memeberships class in PHP header file

use Ramphor\Memberships\Memberships;

Create memberships instance

$membershipParentMenu = 'parent-menu-slug';
$memberships = Memberships::createInstance(

Notes: If you want to enable profile fields for memberships plan please call below method


Execute memberships features

You can execute memberships directly by the way $memberships->run(); or use WordPress hook same below code

    array( $memberships, 'run' )

Notes: Please use hooks before hook init such as: plugins_loaded, after_setup_theme, etc