This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function titlebrand_shortcode() { | |
global $product; | |
$tbs_brand = implode(', ', wp_get_post_terms($product->get_id(), 'product_brand', ['fields' => 'names'])); | |
$tbs_SEOline = get_post_meta($product->get_id(), '_custom_product_title_field', true); | |
$tbs_title = get_the_title(); | |
$brandWatch = ["Springfree", "AlleyOOP", "NORTH"]; | |
foreach ($brandWatch as $brandWatch) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* script to add css sheet addition drop in functions.php */ | |
add_action('admin_head', 'admin_styles'); | |
function admin_styles() { | |
echo '<link rel="stylesheet" href="'. get_stylesheet_directory_uri() . '/css/admin-styles.css" type="text/css" media="all" />'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* -------- Show product title with brand span -------- */ | |
/* | |
from what it appears woo makes it easy to show brand images, but not the name | |
First two done in shortcode as it was applied to a site using a builder | |
1. titlebrand_shortcode |