Points To Be Noted While Passing a Boolean Variable To Backend In An Extension

While working on any SCA extension having both javascript and suite script module, if we are passing a boolean value(true/false) to the suite script module there is a chance for changing the variable type to string. So if you are checking any condition with that variable make sure to check the type of the variable… Continue reading Points To Be Noted While Passing a Boolean Variable To Backend In An Extension

Insert Contents into the table of database

The contents can be inserted by using the function given below: function my_plugin_insert_db() {  global $wpdb;  $username = ‘wordpress’;  $email = ‘test1@wordpress.com‘;  $table_name = $wpdb->prefix . ‘db_plugin’;  $wpdb->insert(  $table_name,  array(  ‘username’ => $username,  ’email’ => $email,  )  );  }  if(isset($_POST[‘button2’])) {      global $wpdb;      $username = $_POST[“fname”];      $email = $_POST[“email”];      $table_name =… Continue reading Insert Contents into the table of database