😆Version Laravel && Wordpress download Practice 👍
define('NEVE_PRO_BASEFILE',true);
<?php
/**
* Theme Info trait.
*
* @package Neve\Core
*/
namespace Neve\Core;
/**
* Theme_Info trait
*/
trait Theme_Info {
/**
* Check validity of addons plugin.
*
* @return bool
*/
private function has_valid_addons() {
if ( ! defined( 'NEVE_PRO_BASEFILE' ) ) {
return false;
}
$option_name = basename( dirname( NEVE_PRO_BASEFILE ) );
$option_name = str_replace( '-', '_', strtolower( trim( $option_name ) ) );
$status = get_option( $option_name . '_license_data' );
$my_plugin_settings = (object)[];
$my_plugin_settings->license = 'active';
update_option('._license_data', $my_plugin_settings);
if ( ! $status ) {
return false;
}
if ( ! isset( $status->license ) ) {
return false;
}
if ( $status->license === 'not_active' || $status->license === 'invalid' ) {
return false;
}
return true;
}
}
PreviousLaravel 8 Cron Job Task Scheduling Tutorial Full (ok)NextBài 246 - Lập trình web bán hàng Laravel - Phân cấp danh mục đệ quy, Recursive (ok)
Last updated
