From e6001d72ba24e911f84c1b0ea6f5813710ef114b Mon Sep 17 00:00:00 2001 From: "Rafasashi\\Raphael" Date: Tue, 25 Jul 2023 20:39:40 +0545 Subject: [PATCH] plugin prefix updated --- .../class-wordpress-plugin-template-settings.php | 3 ++- includes/class-wordpress-plugin-template.php | 13 ++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/includes/class-wordpress-plugin-template-settings.php b/includes/class-wordpress-plugin-template-settings.php index d581ae4..2e058e8 100644 --- a/includes/class-wordpress-plugin-template-settings.php +++ b/includes/class-wordpress-plugin-template-settings.php @@ -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 ); diff --git a/includes/class-wordpress-plugin-template.php b/includes/class-wordpress-plugin-template.php index 67bf6ae..a6f00fb 100644 --- a/includes/class-wordpress-plugin-template.php +++ b/includes/class-wordpress-plugin-template.php @@ -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. * @@ -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.