Adding or Editing Products in WooCommerce via XML-RPC

I was recently tasked with connecting an external inventory control system with WooCommerce. In this environment, the ICS is the main repository and WooCommerce is just a customer portal. After researching the WooCommerce API, I quickly found that it only supports read access for the most part. I then tried connecting through the Jetpack REST […]

Remove NULL or empty values from a PHP array

I found this simple code while searching. To remove emtpy ( “” ) values and NULL values: $new_array_without_nulls =($array_with_nulls); To remove only NULL values but ignore empty strings, etc: $new_array_without_nulls = array_filter($array_with_nulls, ‘strlen’); Credit goes to Brian Cray for the original post.