- Dec 30, 2018
- 304
- 687
- 93
Comment with // or /* bla */, or manually add string to variables in lines:
- woocommerce-sea.php: lines 130, 131, 907, 916 <> 925, 3603, 3604, 3608 <> 3614, 3619, 3624
- js/woosea_key.js: lines 30, 36, 43, 44, 46, 47
- classes/class-activate.php: lines 1880, 1881, 1884, 1887 <> 1893, 1987, 1904
You can also download a fresh 7.1.5 from wp repository and compare (notepad++, winmerge, etc) these 3 files with nulled 7.1.5 below
=> Not the right way of nulling because cannot update plugin without doing all modifications again in update plugin code.
=> Add below code to your functions.php/child theme or wherever you want to properly null the plugin in non-destructive way i.e. allow it to update & still maintaining null state.
=> Not tested very thoroughly because not using plugin but prima facie it is working & should work. If needed adjustments or not working, ping me.
CODE (edited & fixed for new installation) -
PHP:
//plugin - product feeds pro - null - START
add_filter('pre_option_license_information','custom_null_product_feed_pro');
function custom_null_product_feed_pro(){
remove_filter('pre_option_license_information','custom_null_product_feed_pro');
$productFeedLicense=get_option('license_information');
if(!is_array($productFeedLicense)){
$productFeedLicense=[];
}
unset($productFeedLicense['message']);
unset($productFeedLicense['message_type']);
$productFeedLicenseNull=[
'license_valid'=>true,
'license_created'=>'2000-01-01',
'notice'=>false,
'license_email'=>'[email protected]',
'license_key'=>'abcde12345',
];
$productFeedLicense=array_merge($productFeedLicense,$productFeedLicenseNull);
add_filter('pre_option_license_information','custom_null_product_feed_pro');
return $productFeedLicense;
}
//plugin - product feeds pro - null - END
Last edited: