Search WooCommerce price from an array of arrays. In this example we have multiple arrays of data. We search for the array that contain a certain value. Then, we obtain the price from that array. Add this code snippet to your themes functions.php file. NOTICE: Requires WP Data Sync plugin version 2.1.1 or higher. SampleRead More
Developers
Filter WordPress Post Title
Filter a portion of the post title to replace specific characters. Add this code snippet to your themes functions.php file. NOTE: When string replacing HTML Entries, it is best practice to use the appropriate HTML Entity code. Code Example Products
Filter WooCommerce Backorder Status Based on Stock Quantity
If you are syncing inventory from your POS to your WooCommerce store you understand the importance of the correct backorder status. WP Data Sync plugin it packed with action hooks and filters to make this an easy customization. In the code example below, we are setting the backorder status based on the stock quantity provided by your data source using the wp_data_sync_{$meta_key}_value filter.Read More
Filter WooCommerce Prices to Add Store Markup
If you are syncing prices from your product supplier’s API. The supplier price does not always include your store’s price markup. WP Data Sync plugin it packed with action hooks and filters to make this an easy customization. In the code example below, we are adding a 10% markup to all prices provided by yourRead More
Quickly Process Raw Data for WordPress and WooCommerce
Website developers know the complexity of processing raw data from multiple sources. If the data is provided in several different formats, the task can certainly seem overwhelming. This is especially true for growing businesses and eCommerce stores. For example, adding a new supplier or distributor can attract new customers. But getting all the new dataRead More