Show shipping class in admin product list

You can add a new column to the product admin overview that displays the shipping class of each product. Here’s how you can do it: Add the following code to your theme’s functions.php file or a custom plugin: // Add new ‘Shipping Class’ column to the product admin overview add_filter( ‘manage_edit-product_columns’, ‘show_product_shipping_class_column’ ); function show_product_shipping_class_column( … Read more

Are the wp entries in these URL’s legitimate?

Those are valid links to approve a comment, trash it, or mark it as spam, and a link to view moderated comments. The #wpbody-content part is just an anchor so that the page scrolls to a certain point when you visit it. There’s nothing inherently harmful or unsafe about those links, but whether or not … Read more

Is there a way to create a single rewrite rule to handle multiple variables depending on what is present?

I was able to make this work by using a power set function and then using that array to create individual rewrite rules. add_action(‘init’, ‘ebd_custom_rewrite_rules’); function ebd_custom_rewrite_rules() { $taxonomies = array( ‘engine-work’, ‘engine-specialty’, ‘application-specialty’, ‘machining-capability’, ‘dyno-facility’, ‘shop-region’); $combinations = ebd_get_array_power_set($taxonomies); $element_size_min = 2; foreach ($combinations as $combination) { if ($element_size_min <= count($combination)) { // skip … Read more