Title: dsm1's Replies | WordPress.org

---

# dsm1

  [  ](https://wordpress.org/support/users/dsm1/)

 *   [Profile](https://wordpress.org/support/users/dsm1/)
 *   [Topics Started](https://wordpress.org/support/users/dsm1/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dsm1/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dsm1/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dsm1/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dsm1/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dsm1/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 57 total)

1 [2](https://wordpress.org/support/users/dsm1/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/dsm1/replies/page/3/?output_format=md) [4](https://wordpress.org/support/users/dsm1/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/dsm1/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Radio Station by netmix® - Manage and play your Show Schedule in WordPress!] DJ’s can no longer edit their own shows](https://wordpress.org/support/topic/djs-can-no-longer-edit-their-own-shows/)
 *  Thread Starter [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/djs-can-no-longer-edit-their-own-shows/#post-12077890)
 * Hi,
 * Yes, the DJ has access to the show, but still, nothing…
 * I installed version 2.2.6 and the issue still persisted, are you able to send
   me a previous version further back so I can test it? I’m trying to work out what’s
   changed…
 * Kind Regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Radio Station by netmix® - Manage and play your Show Schedule in WordPress!] DJ’s can no longer edit their own shows](https://wordpress.org/support/topic/djs-can-no-longer-edit-their-own-shows/)
 *  Thread Starter [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/djs-can-no-longer-edit-their-own-shows/#post-12004870)
 * Hi [@tonyzeoli](https://wordpress.org/support/users/tonyzeoli/),
 * I’m sorry to say I’m already on 2.2.8 and this is the update that presented this
   problem…
 * Kind Regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Radio Station by netmix® - Manage and play your Show Schedule in WordPress!] DJ’s can no longer edit their own shows](https://wordpress.org/support/topic/djs-can-no-longer-edit-their-own-shows/)
 *  Thread Starter [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/djs-can-no-longer-edit-their-own-shows/#post-11996946)
 * Hi [@tonyzeoli](https://wordpress.org/support/users/tonyzeoli/),
 * We upgraded to the latest version of WordPress and we are not using the Members
   Plugin.
 * Kind Regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Is it possible…](https://wordpress.org/support/topic/is-it-possible-54/)
 *  Thread Starter [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/is-it-possible-54/#post-11007182)
 * Hi James,
 * I’m drilling this down a bit, would be good to get something here on this topic
   for others to use later,
 * This line is creating issues:
    `echo apply_filters( 'woocommerce_attribute', 
   wpautop( wptexturize( implode( ', ', $values ) ) ), $attribute, $values );`
 * I get the attributes (in my case, Ingredients) out of the site, all comma seperated
   in the <p>Water, Flour</p> – like that…
 * I would like to get a loop like this (note, the below code isn’t real to my knowledge):
 *     ```
       loop
       <li><img src="$attribute_img_url;"><caption>$attribute;</caption><p>$attribute_desc;</p></li>
       end_loop
       ```
   
 * I am then adding this into a tab by using functions.php.
 * Thanks for your assistance so far James.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Is it possible…](https://wordpress.org/support/topic/is-it-possible-54/)
 *  Thread Starter [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/is-it-possible-54/#post-10988289)
 * Hi James,
 * Thanks for getting back, yes, this is basically what we wish to do, the difficulty
   being getting the option to appear in the back end of the site for our marketing
   guys to easily chose ingredients,
    That said, I’ve played more with Attributes
   and I am able to get these to display in a tab of their own, provided we can 
   get the description outputted and an image attached (and outputted) then this
   is all we need! I will then use an accordian for the description on the same 
   page rather than mix with the post_types… Since opening this ticket, we have 
   decided to have “Ingredients” listing all ingredients in a product and “Main 
   Ingredients” listing the top 5 key ingredients, which implies that we will need
   to have differnt ways to store these ingredients, so using attributes would allow
   us to list these both in the same way.
 * So far, my functions.php looks like this, although, I would like to output the
   ingredients individually without being in the same <p> tag:
 *     ```
       /**
        * Remove product data tabs
        */
       add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
   
       function woo_remove_product_tabs( $tabs ) {
   
       //    unset( $tabs['description'] );          // Remove the description tab
       //    unset( $tabs['reviews'] );          // Remove the reviews tab
           unset( $tabs['additional_information'] );   // Remove the additional information tab
   
           return $tabs;
       }
       function woo_new_product_tab_content() {
   
           // The new tab content
   
           echo '<h2>List of Ingredients in this product</h2>';
           echo '<p>Here\'s your new product tab.</p>';
           global $product;
       //     $ingredient = $product->get_attribute('pa_ingredients');
       //     $product = wc_get_product( $product_id );
       $ingredients_list = $product->get_attribute( 'ingredients' );
        //   print $ingredients_list;
   
       $meta_image = get_wp_term_image($term_id); 
   
       $has_row    = false;
       $attributes = $product->get_attributes();
   
       ob_start();
   
       ?>
       <div class="product_attributes">
   
           <?php foreach ( $attributes as $attribute ) :
   
               if ( empty( $attribute['is_visible'] ) || ( $attribute['is_taxonomy'] && ! taxonomy_exists( $attribute['name'] ) ) ) 
                   continue;
   
               $values = wc_get_product_terms( $product->get_id(), $attribute['name'], array( 'fields' => 'names' ) );
               $att_val = apply_filters( 'woocommerce_attribute', wpautop( wptexturize( implode( '<br>', $values ) ) ), $attribute, $values );
   
               if( empty( $att_val ) )
                   continue;
   
               $has_row = true;
               ?>
   
           <div class="col">
               <div class="att_label"><?php //echo wc_attribute_label( $attribute['name'] ); ?></div>
               <div class="att_value"><?php $meta_image = get_wp_term_image($term->term_id); ?><?php echo $att_val; ?></div><!-- .att_value -->
           </div><!-- .col -->
   
           <?php endforeach; ?>
   
       </div><!-- .product_attributes -->
       <?php
       if ( $has_row ) {
           echo ob_get_clean();
       } else {
           ob_end_clean();
       }
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Reusable Product Description for WooCommerce] Return Attribute Image](https://wordpress.org/support/topic/return-attribute-image/)
 *  Thread Starter [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/return-attribute-image/#post-10988015)
 * Thanks Mike,
 * As I’m programming the tabs from the functions.php file and putting a Attributes
   loop in place, are you able to assist me with what code I need to use for an 
   image in the loop please?
 * I have this so far:
 *     ```
       /**
        * Add a custom product data tab
        */
       add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' );
       function woo_new_product_tab( $tabs ) {
   
           // Adds the new tab
   
           $tabs['test_tab'] = array(
               'title'     => __( 'Ingredients', 'woocommerce' ),
               'priority'  => 50,
               'callback'  => 'woo_new_product_tab_content'
           );
   
           return $tabs;
   
       }
       /**
        * Remove product data tabs
        */
       add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
   
       function woo_remove_product_tabs( $tabs ) {
   
           unset( $tabs['additional_information'] );   // Remove the additional information tab
   
           return $tabs;
       }
       function woo_new_product_tab_content() {
   
           // The new tab content
   
           echo '<h2>List of Ingredients in this product</h2>';
           echo '<p>Here\'s your new product tab.</p>';
           global $product;
       $ingredients_list = $product->get_attribute( 'ingredients' );
           print $ingredients_list;
   
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Is it possible…](https://wordpress.org/support/topic/is-it-possible-54/)
 *  Thread Starter [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/is-it-possible-54/#post-10984713)
 * Hi [@jameskoster](https://wordpress.org/support/users/jameskoster/),
 * I’ve looked at doing this using WooCommerce Attributes and it’s too limited!
   
   I need a better way to add images into Attributes, is this not anything I can
   feature request for core?
 * I’ll explain how far I got…
    I tried several plugins to add the image, whilst
   it adds, it is impossible to echo in the front end, as when referencing the attribute
   image, nothing returns, as this isn’t attribute related, considering I’m trying
   to return in a loop, this was never going to work I regret to say…
 * This: [https://wordpress.org/plugins/woo-product-attribute-tab/](https://wordpress.org/plugins/woo-product-attribute-tab/)
   works wonders in doing the tab display I wanted, I tried to use functions.php
   as you described, but I got that tiny bit further with this plugin, although,
   I did remove “Additional Information” with the functions snippets.
 * I think being able to embed my custom post types into a tab, or at least attach
   those to attributes would help here, those custom post types allow me to insert
   a title, description & featured image, tying that in with Attributes would mean
   we can go to Attributes in a product then select “Ingredients” and pull the data
   from the “ingredients” post_type.
 * Does this make sense?
 * As I say, this is exactly what we’re looking for, found under “Main Ingredients”
   on this website: [https://www.pevonia.co.uk/buy/index.php?route=product/product&path=238_58_234_66&product_id=302](https://www.pevonia.co.uk/buy/index.php?route=product/product&path=238_58_234_66&product_id=302)
 * Kind Regards
    Dan
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Is it possible…](https://wordpress.org/support/topic/is-it-possible-54/)
 *  Thread Starter [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/is-it-possible-54/#post-10958634)
 * Hi James,
 * Thank you for your response, I did look at doing this with attributes, but we
   concluded that this isn’t best for us…
 * It’s also not quite what we’re looking to do, we’re looking at having the post
   type of Ingredients to be it’s own type of area on the site, so it won’t purley
   be used for product tabs, the other use of having an Ingredient Library is working
   as we would expect, but we wish to create a product tab which has all of this
   post type listed as tick boxes to then check for it to appear in the front end
   with the images as expected.
 * Additionally, we use atrtibuts for product sizes and colours, so I’d rather keep
   ingredients out of this, that said, if the attributes are browsable on the front
   end, then I can give this a go, although I couldn’t find in your attached documentation
   exactly how to remove “Additional Information” from displaying the other attribute
   types (size & colour), renaming it to “Ingredients” would do exactly what we 
   would want but obviousy we don’t want size and colour to appear there! Unless
   there is a way to give each attribute its own tab?
 * I’ll run some tests on the staging site and see how far I can get with it as-
   is and let you know.
 * Kind Regards
    Dan
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Secure Downloads] Page not Found](https://wordpress.org/support/topic/page-not-found-318/)
 *  [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/page-not-found-318/#post-10910751)
 * [@wpdevelop](https://wordpress.org/support/users/wpdevelop/) – What should the
   secure key be set to?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Adminimize] WooCommerce Reports are BLOCKED!](https://wordpress.org/support/topic/woocommerce-reports-are-blocked/)
 *  Thread Starter [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/woocommerce-reports-are-blocked/#post-10812988)
 * The only workaround I have isn’t brilliant and won’t work for everyone but works
   for us, at least for now.
    Firstly, we’ve uninstalled Adminimize, instead, we
   now use User Role Editor. We’ve set the user roles up, with Adminimize disabled,
   Reporting works, but other plugins and options show! We disabled the role “manage_woocommerce”
   for our user group and left the product editing enabled and the WooCommerce tab
   in the backend was removed altogether whilst the Products option remained. A 
   new button for Sales Reports appears now which is good and to us solves the problem.
   As for defining other plugins from appearing, you can edit the root plugin file
   and look for the permission hook, I just searched the PHP file for “wp-manage-
   options” or whichever role I could trace the plugin to hooking into and changed
   that dependancy to “delete-plugins”, as on our site, only the rot admin has the
   right to delete plugins, for example. It’s very much a case of applying you own
   logic to it, give it a try and if you get stuck, shout us back. Regards Dan
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Variations of the same price reappear continuously](https://wordpress.org/support/topic/variations-of-the-same-price-reappear-continuously/)
 *  Thread Starter [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/variations-of-the-same-price-reappear-continuously/#post-10599235)
 * Hi,
 * Tried that, it’s not theme. Sorry for the delay in getting back to you.
 * Regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Phone Orders for WooCommerce] Post Code Search](https://wordpress.org/support/topic/post-code-search/)
 *  Thread Starter [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/post-code-search/#post-10486638)
 * Hi Alex,
 * For this to work, I will need to rename the <input> ID’s to company, address1,
   address2, town, county, & postcode, rather than the current input-new-customer-
   country etc.
 * Would that cause a problem?
 * Also, when setting up a new customer, it errors asking us to set a customer password,
   can it not automatically generate one and send it to the customer rather then
   send it to the customer without us seeing it?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Phone Orders for WooCommerce] Product Search buggy.](https://wordpress.org/support/topic/product-search-buggy/)
 *  Thread Starter [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/product-search-buggy/#post-10476880)
 * Hi Alex,
 * Assuming you are refering to the premium version of the plugin here? (We have
   free)
    I can’t find that setting…
 * Regards
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Phone Orders for WooCommerce] Grant permission for another user role to add orders](https://wordpress.org/support/topic/grant-permission-for-another-user-role-to-add-orders/)
 *  Thread Starter [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/grant-permission-for-another-user-role-to-add-orders/#post-10468582)
 * Strange… I’ve got it working though!
    Had to enable all of these as a minimum
   for it to work!!
 * assign_shop_coupon_terms
    assign_shop_order_terms edit_dashboard edit_posts edit_product
   edit_product_terms edit_products edit_published_shop_coupons edit_published_shop_orders
   edit_published_shop_webhooks edit_shop_coupon edit_shop_coupon_terms edit_shop_coupons
   edit_shop_order_terms edit_shop_orders edit_shop_webhook edit_shop_webhook_terms
   edit_shop_webhooks edit_users list_users manage_options manage_woocommerce phone-
   orders-for-woocommerce publish_posts publish_shop_orders publish_shop_webhooks
   read read_private_pages read_private_posts read_private_products read_private_shop_coupons
   read_private_shop_orders read_private_shop_webhooks read_product read_shop_coupon
   read_shop_order read_shop_webhook unfiltered_html view_woocommerce_reports
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Phone Orders for WooCommerce] Grant permission for another user role to add orders](https://wordpress.org/support/topic/grant-permission-for-another-user-role-to-add-orders/)
 *  Thread Starter [dsm1](https://wordpress.org/support/users/dsm1/)
 * (@dsm1)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/grant-permission-for-another-user-role-to-add-orders/#post-10466305)
 * Yes, we use Adminimise but Phone Orders is allowed through this.
 * To amend the user roles, I’m using User Role Editor

Viewing 15 replies - 1 through 15 (of 57 total)

1 [2](https://wordpress.org/support/users/dsm1/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/dsm1/replies/page/3/?output_format=md) [4](https://wordpress.org/support/users/dsm1/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/dsm1/replies/page/2/?output_format=md)