src/Core/PluginManager.php
protected function setConstants()
    {
        $this->parsedHeaders = $this->headers($this->filePath, $this->headers);

        $domainVar = $this->parsedHeaders['domain_var'] ?? 'PLUGIN_TD';
        $domainVar = strtoupper($domainVar);
        $textDomain = $this->parsedHeaders['text_domain'] ?? 'plugin-textdomain';

        if (! defined($domainVar)) {
            define($domainVar, $textDomain);
        }
    }
protected function setConstants()
    {
        $this->parsedHeaders = $this->headers($this->filePath, $this->headers);

        $domainVar = $this->parsedHeaders['domain_var'] ?? 'PLUGIN_TD';
        $domainVar = strtoupper($domainVar);
        $textDomain = $this->parsedHeaders['text_domain'] ?? 'plugin-textdomain';

        if (! defined($domainVar)) {
            define($domainVar, $textDomain);
        }
    }
protected function setConstants ( ) { $ this -> parsedHeaders = $ this -> headers ( $ this -> filePath , $ this -> headers ) ; $ domainVar = $ this -> parsedHeaders [ 'domain_var' ] ?? 'PLUGIN_TD' ; $ domainVar = strtoupper ( $ domainVar ) ; $ textDomain = $ this -> parsedHeaders [ 'text_domain' ] ?? 'plugin-textdomain' ; if ( ! defined ( $ domainVar ) ) { define ( $ domainVar , $ textDomain ) ; } }
Set plugin headers and plugin text domain constant.
Set plugin headers and plugin text domain constant .