Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added versioning #2

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Added versioning #2

wants to merge 1 commit into from

Conversation

sandeshjangam
Copy link
Collaborator

@sandeshjangam sandeshjangam commented Mar 14, 2023

if ( ! class_exists( 'SureCart\Licensing\Loader' ) ) {
	require_once SUREMEMBERS_DIR . '/wordpress-sdk/src/Loader.php';
}

// initialize client with your plugin name.
$this->license_instance = \SureCart\Licensing\Loader::instance();

$this->license_instance->set_entity(
  [
	  'path' => SUREMEMBERS_DIR . 'wordpress-sdk/'
  ]
);
add_action( 'plugins_loaded', function() {

	// initialize client with your plugin name.
	$client = $this->license_instance->get_client( 'SureMembers', SUREMEMBERS_FILE );

	// set your textdomain.
	$client->set_textdomain( 'suremembers' );
} );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant