$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
** * 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
$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
// 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
// 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
// Replace ‘evidence_summary’ with the slug of your taxonomy $taxonomy_slug = ‘evidence_summary’; // 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_id = $term->term_id; // Get…Continue reading
/* * Programmatically find Related content from SearchWP Related */ // Instantiate SearchWP Related $searchwp_related = new SearchWP_Related(); // Use the keywords as defined in the SearchWP Related meta box $keywords = get_post_meta( get_the_ID(), $searchwp_related->meta_key, true ); $args = array(…Continue reading
// Get the current author’s information $author = get_queried_object(); $author_id = $author->ID; $author_name = $author->display_name; $author_email = $author->user_email; $author_website = $author->user_url; // Get social profiles and phone number if they exist $author_social_profiles = array( ‘Facebook’ => get_user_meta($author_id, ‘facebook’, true), ‘Instagram’…Continue reading
//echo FrmFormsController::get_form_shortcode( array( ‘id’ => 9 ) ); $localFiles = array( ‘wpcf-local-file-1’ => ‘wpcf-file-1’, ‘wpcf-local-file-2’ => ‘wpcf-file-2’, ‘wpcf-local-file-3’ => ‘wpcf-file-3’, ‘wpcf-local-file-4’ => ‘wpcf-file-4’, ‘wpcf-local-file-5’ => ‘wpcf-file-5’, ‘wpcf-local-file-6’ => ‘wpcf-file-6’, ‘wpcf-local-file-7’ => ‘wpcf-file-7’, ‘wpcf-local-file-8’ => ‘wpcf-file-8’, ‘wpcf-local-file-9’ => ‘wpcf-file-9’, ‘wpcf-local-file-10’ =>…Continue reading
$externalLinks = array( ‘wpcf-external-link-text1’ => ‘wpcf-external-link1’, ‘wpcf-external-link-text2’ => ‘wpcf-external-link2’, ‘wpcf-external-link-text-3’ => ‘wpcf-external-link-3’, ‘wpcf-external-link-text-4’ => ‘wpcf-external-link-4’, ‘wpcf-external-link-text-5’ => ‘wpcf-external-link-5’, ‘wpcf-external-link-text-6’ => ‘wpcf-external-link-6’, ‘wpcf-external-link-text-7’ => ‘wpcf-external-link-7’, ‘wpcf-external-link-text-8’ => ‘wpcf-external-link-8’, ‘wpcf-external-link-text-9’ => ‘wpcf-external-link-9’, ‘wpcf-external-link-text-10’ => ‘wpcf-external-link-10’, ‘wpcf-external-link-text-11’ => ‘wpcf-external-link-11’, ‘wpcf-external-link-text-12’ => ‘wpcf-external-link-12’, ‘wpcf-external-link-text-13’…Continue reading