code đầu tiên cho flatsome

 add_filter( 'gutenberg_use_widgets_block_editor', '__return_false' );

add_filter( 'use_widgets_block_editor', '__return_false' );

update_option( 'flatsome_wup_purchase_code', '846b8d75-85b3-4b3e-976c-2e29d386339d' );

update_option( 'flatsome_wup_supported_until', '01.01.2050' );

update_option( 'flatsome_wup_buyer', 'Licensed' );

update_option( 'flatsome_wup_sold_at', time() );

delete_option( 'flatsome_wup_errors');

delete_option( 'flatsome_wupdates');

add_action('admin_head', 'custom_css_backend');

function custom_css_backend() {

    echo '<style>#flatsome-notice {display: none;}</style>';

}

thêm vào function rồi tạo child


Nếu không được thì dùng code sau


// Get the site URL

$site_url = get_site_url();


// Extract the domain name from the URL

$domain_name = wp_parse_url($site_url, PHP_URL_HOST);


$update_option_data = array(

    'id'           => 'new_id_123456',

    'type'         => 'PUBLIC',

    'domain'       => $domain_name, // Set the domain to the current domain name

    'registeredAt' => '2021-07-18T12:51:10.826Z',

    'purchaseCode' => 'abcd1234-5678-90ef-ghij-klmnopqrstuv',

    'licenseType'  => 'Regular License',

    'errors'       => array(),

    'show_notice'  => false

);


update_option('flatsome_registration', $update_option_data, 'yes');