Recent products table

if ( ! function_exists( ‘wcv_remove_recent_product_table_columns’ ) ) { /** * Remove columns from Recent Products table in Pro Dashboard * * @param array $columns Columns of table. * @return array */ function wcv_remove_recent_product_table_columns( $columns ) { //Remove Status column unset(…Continue reading

Remove table from dashboard (copy)

if ( ! function_exists( ‘wcv_remove_recent_order_table_columns’ ) ) { /** * Remove columns from Recent Orders table in Pro Dashboard * * @param array $columns Columns of table. * @return array */ function wcv_remove_recent_order_table_columns( $columns ) { //Remove commission column unset(…Continue reading

Remove table from dashboard

if ( ! function_exists( ‘wcv_remove_recent_order_table_columns’ ) ) { /** * Remove columns from Recent Orders table in Pro Dashboard * * @param array $columns Columns of table. * @return array */ function wcv_remove_recent_order_table_columns( $columns ) { //Remove commission column unset(…Continue reading

Add Column To Dashboard Table – Order Table (copy)

__( ‘ID’, ‘wcvendors-pro’ ), ‘order_number’ => __( ‘Order’, ‘wcvendors-pro’ ), ‘customer’ => __( ‘Customer’, ‘wcvendors-pro’ ), ‘products’ => __( ‘Products’, ‘wcvendors-pro’ ), ‘order_notes’ => __( ‘Customer Notes’, ‘wcvendors-pro’ ), ‘total’ => __( ‘Total’, ‘wcvendors-pro’ ), ‘status’ => __( ‘Shipped’, ‘wcvendors-pro’…Continue reading

Add extra shipping providers for vendor tracking numbers

$shipping_providers = array( ‘Australia’ => array( ‘Australia Post’ => ‘https://auspost.com.au/mypost/track/#/details/%1$s’, ‘FedEx’ => ‘https://www.fedex.com/apps/fedextrack/?tracknumbers=%1$s&cntry_code=au’, ‘Fastway Couriers’ => ‘https://www.fastway.com.au/tools/track/?l=%1$s’, ), ‘Austria’ => array( ‘post.at’ => ‘https://www.post.at/sv/sendungsdetails?snr=%1$s’, ‘dhl.at’ => ‘https://www.dhl.at/content/at/de/express/sendungsverfolgung.html?brand=DHL&AWB=%1$s’, ‘DPD.at’ => ‘https://tracking.dpd.de/parcelstatus?locale=de_AT&query=%1$s’, ), ‘Brazil’ => array( ‘Correios’ => ‘http://websro.correios.com.br/sro_bin/txect01$.QueryList?P_LINGUA=001&P_TIPO=001&P_COD_UNI=%1$s’, ), ‘Belgium’ =>…Continue reading

Custom WooCommerce Status

** * Register new post status with WordPress */ add_action( ‘init’, ‘wcvendors_custom_status_action’ ); function wcvendors_custom_status_action() { register_post_status( ‘wc-custom-status’, array( ‘label’ => __( ‘Custom Status’, ‘wc-vendors’ ), ‘public’ => true, ‘show_in_admin_status_list’ => true, ‘label_count’ => _n_noop( ‘Custom Status (%s)’, ‘Custom Status…Continue reading

EVIDENCE STUDY POST | Relevant Evidence Summary

$taxonomy_slug = ‘evidence_summary’; $terms = get_the_terms(get_the_ID(), $taxonomy_slug); if ($terms && !is_wp_error($terms)) { foreach ($terms as $term) { $term_slug = $term->slug; $term_meta = get_term_meta($term->term_id); foreach ($term_meta as $key => $value) { // Do something with custom field data if needed }…Continue reading

Evidence Summary: Search Protocol

// Replace ‘evidence_summary’ with the slug of your taxonomy $taxonomy_slug = ‘evidence_summary’; $term_slug = ”; // Get the terms assigned to the current post $terms = get_the_terms(get_the_ID(), $taxonomy_slug); if ($terms && !is_wp_error($terms)) { foreach ($terms as $term) { $term_slug =…Continue reading

Evidence Summary: Show Studies in a List

// Replace ‘evidence_summary’ with the slug of your taxonomy $taxonomy_slug = ‘evidence_summary’; $term_slug = ”; // Get the terms assigned to the current post $terms = get_the_terms(get_the_ID(), $taxonomy_slug); if ($terms && !is_wp_error($terms)) { foreach ($terms as $term) { $term_slug =…Continue reading