// 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
add_filter( ‘wcv_product_meta_tabs’, ‘wcv_change_product_tab_order_alphabetical’ ); function wcv_change_product_tab_order_alphabetical( $tabs ){ ksort( $tabs ); return $tabs; }Continue reading
add_filter( ‘wcv_product_meta_tabs’, ‘wcv_change_product_tab_order_manual’ ); function wcv_change_product_tab_order_manual( $tabs ){ WC_Vendors::log( array_keys( $tabs ) ); $new_tabs = array(); $new_tabs[ ‘general’ ] = $tabs[ ‘general’ ]; $new_tabs[ ‘seo’ ] = $tabs[ ‘seo’ ]; $new_tabs[ ‘shipping’ ] = $tabs[ ‘shipping’ ]; $new_tabs[ ‘inventory’ ]…Continue reading
add_filter( ‘wcv_product_description_editor_settings’, ‘wcv_full_editor’ ); add_filter( ‘wcv_product_short_description_editor_settings’, ‘wcv_full_editor’ ); function wcv_full_editor( $settings ){ $settings[‘teeny’] = false; return $settings; }Continue reading
/* Lets Shop Managers edit users with these user roles */ function wcv_allow_shop_manager_role_edit_capabilities( $roles ) { $roles[] = ‘vendor’; // insert the role you want them to be able to access here, copy+paste this line for additional user roles return…Continue reading