Skip to content

Commit

Permalink
plugin prefix updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasashi committed Jul 25, 2023
1 parent b6718a8 commit e6001d7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion includes/class-wordpress-plugin-template-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ class WordPress_Plugin_Template_Settings {
* @param object $parent Parent object.
*/
public function __construct( $parent ) {

$this->parent = $parent;

$this->base = 'wpt_';
$this->base = $this->parent->_base;

// Initialise settings.
add_action( 'init', array( $this, 'init_settings' ), 11 );
Expand Down
13 changes: 12 additions & 1 deletion includes/class-wordpress-plugin-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,16 @@ class WordPress_Plugin_Template {
* @since 1.0.0
*/
public $_version; //phpcs:ignore


/**
* The base.
*
* @var string
* @access public
* @since 1.0.0
*/
public $_base; //phpcs:ignore

/**
* The token.
*
Expand Down Expand Up @@ -109,7 +118,9 @@ class WordPress_Plugin_Template {
* @param string $version Plugin version.
*/
public function __construct( $file = '', $version = '1.0.0' ) {

$this->_version = $version;
$this->_base = 'wpt_';
$this->_token = 'wordpress_plugin_template';

// Load plugin environment variables.
Expand Down

0 comments on commit e6001d7

Please sign in to comment.