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 | |
//Displaying Additional Columns | |
add_filter( 'manage_edit-product_cat_columns', 'wh_customFieldsListTitle' ); //Register Function | |
add_action( 'manage_product_cat_custom_column', 'wh_customFieldsListDisplay' , 10, 3); //Populating the Columns | |
/** | |
* Meta Title and Description column added to category admin screen. | |
* | |
* @param mixed $columns |
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
SELECT p.`ID` AS 'Product ID', | |
p.`post_title` AS 'Product Name', | |
t.`term_id` AS 'Attribute Value ID', | |
REPLACE(REPLACE(tt.`taxonomy`, 'pa_', ''), '-', ' ') AS 'Attribute Name', | |
t.`name` AS 'Attribute Value' | |
FROM `wp_posts` AS p | |
INNER JOIN `wp_term_relationships` AS tr ON p.`ID` = tr.`object_id` | |
INNER JOIN `wp_term_taxonomy` AS tt ON tr.`term_taxonomy_id` = tt.`term_id` | |
AND tt.`taxonomy` LIKE 'pa_%' | |
INNER JOIN `wp_terms` AS t ON tr.`term_taxonomy_id` = t.`term_id` |
OlderNewer