FIX: Use of undefined constant SP_PLUGIN_FILE

FIX: Use of undefined constant SP_PLUGIN_FILE - assumed 'SP_PLUGIN_FILE' (this will throw an Error in a future version of PHP)
This commit is contained in:
savvasha
2023-05-07 17:16:44 +03:00
committed by GitHub
parent 16b0a3e3a1
commit eb444db5b8

View File

@@ -23,6 +23,9 @@ if ( ! class_exists( 'SP_Install' ) ) :
* Hook in tabs.
*/
public function __construct() {
if ( ! defined( 'SP_PLUGIN_FILE' ) ) {
define( 'SP_PLUGIN_FILE', __FILE__ );
}
register_activation_hook( SP_PLUGIN_FILE, array( $this, 'install' ) );
if ( defined( 'SP_PRO_PLUGIN_FILE' ) ) {