Install latest node in Ubuntu
How can the default node version be set using NVM? nvm alias default 16 Set the node version to be set using NVM for a specific folder? nvm install v16
How can the default node version be set using NVM? nvm alias default 16 Set the node version to be set using NVM for a specific folder? nvm install v16
plugins blog search contact Home Courses Plugins Blog Contact MailChimp Webhooks API – both PHP and WordPress integrations Creating a Webhook How to create a webhook url on your server? Before creating a webhook, you should know one thing – the URL of the webhook must exist on your server and accept GET parameters. It could be a …
sudo apt-get install httrack httrack “https://developernoob.com/” -O “/tmp/developernoob.com/” find data in /temp direcory
always use return wp_json_encode( $result ); wp_die(); in php return function
Wp Ajax – WordPress Hook to Handle Ajax Request wp_ajax is not a hook or callback, rather it is just a prefix of hooks or callbacks. Those callbacks are usually available while making ajax call. When a browser or web-client request with an action query parameter to http://example.com/wp–admin/admin–ajax.php file, a hook becomes available to use. Which use wp_ajax_ as prefix. Brief …
sudo apt install curl sudo apt install curl curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash source ~/.profile check nvm version nvm -v Reference – https://tecadmin.net/how-to-install-nvm-on-ubuntu-20-04/
sudo mysql -u root and if you get error – like below ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO) then use mysql -u root -p mysql -u root -p mysql> use mysql; mysql> ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘NewPassword’; mysql> flush privileges; mysql> exit;
//licence is expired start here if ($response_body[‘license’] == ‘invalid’){ if(isset($response_body[‘error’])){ if($response_body[‘error’] == ‘expired’){ update_option( ‘WCGAAW_LICENSE_STATUS’,‘expired’); return true; } if($response_body[‘error’] == ‘no_activations_left’){ $expiredDate = strtotime(date(‘d-m-Y’, strtotime($response_body[‘expires’]))); $todayDate = strtotime(date(‘d-m-Y’)); if($expiredDate < $todayDate){ update_option( ‘WCGAAW_LICENSE_STATUS’,‘expired’); return true; } } } }
https://www.tecmint.com/install-lamp-with-phpmyadmin-in-ubuntu-20-04/
function wh_log($log_msg) { date_default_timezone_set(‘Asia/Kolkata’); $log_filename = $_SERVER[‘DOCUMENT_ROOT’].“/log”; if (!file_exists($log_filename)) { // create directory/folder uploads. mkdir($log_filename, 0777, true); } $log_file_data = $log_filename.‘/log_’ . date(‘d-M-Y’) . ‘.log’; $log_msg = date(‘d-M-Y g:i a’).“–“.$log_msg; file_put_contents($log_file_data, $log_msg . “n“, FILE_APPEND); } wh_log(‘This is a log message’); mkdir( __DIR__ . ‘/logs/’, 0755, true ); $date = date(‘Y-m-d’); $datetime = …