: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<?php namespace la\core\tabs;
if ( ! defined( 'WPINC' ) ) die;
* @author Looks Awesome <email@looks-awesome.com>
* @link http://looks-awesome.com
* @copyright Looks Awesome
class LALicenseTab implements LATab{
public function __construct($tab_prefix, $activated) {
$this->prefix = $tab_prefix;
$this->activated = $activated;
return $this->prefix . "-license-tab";
public function flaticon() {
public function title() {
return $this->activated ? 'License' : '<i class="flaticon-error" style="display: inline-block;"></i> Activate';
public function includeOnce( $context ) {
$context['activated'] = $this->activated;
/** @noinspection PhpIncludeInspection */
include_once(LAUtils::root($context) . 'views/license.php');