<?php require_once(‘../wp-load.php’); global $wpdb; // $product_ids=array(18744); // foreach($product_ids as $ak=>$product_id){ // $product = wc_get_product( $product_id ); // $product->set_name(‘Hello 2’); // $product->set_stock_quantity(‘9999’); // $product->set_slug(‘test-‘.$product_id); //… Read More →
How to reset queries – wp_reset_query() Function – Smartupworld Developer’s Documents
March 28, 2022
Use the following function to reset queries wp_reset_query()
How to Convert or Change Custom Post Types in WordPress
January 4, 2022
Convert or Change Custom Post Types in WordPress Type and search the following plugin and install it into your WordPress website – Post Type Switcher… Read More →
Delete All WooCommerce Products With MySQL
January 3, 2022
Use the following query to Delete All WooCommerce Products DELETE relations.*, taxes.*, terms.* FROM wp_term_relationships AS relations INNER JOIN wp_term_taxonomy AS taxes ON relations.term_taxonomy_id=taxes.term_taxonomy_id INNER… Read More →
Including CSS and JavaScript in WordPress – The Right Way
December 1, 2021
In WordPress, there are a few different ways to include CSS and JavaScript in your site. Here are some options: Enqueueing Scripts and Stylesheets: This… Read More →
How do I get ACF options page on WordPress website ?
November 2, 2021
To get ACF options page on WordPress website use the following code on your functions.php file – if( function_exists(‘acf_add_options_page’) ) { acf_add_options_page(array( ‘page_title’ => ‘Theme… Read More →