Automatically convert standard posts with custom fields to custom post types

The question: what is the easiest way to convert standard posts with custom fields into a new custom post type There’s no “easy” way. Consider that all posts have custom fields (some are hidden, and WordPress will add them). So you would need to convert post types based on the presence / value of specific … Read more

Adding Tracking Details for Advanced Shipment Tracking Plugin From Order Notes

Add this code snippet in functions.php and let me know. /* * AST: get UPS Tracking number from order note * */ add_action( ‘woocommerce_rest_insert_order_note’, ‘action_woocommerce_rest_insert_order_note’, 10, 3 ); function action_woocommerce_rest_insert_order_note( $note, $request, $true ) { //check if AST is active if ( !function_exists( ‘ast_insert_tracking_number’ ) ) return; //check if order note is for UPS if( … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)