NextGEN Gallery: Adding drop-down menu widget to gallery view without modifying plugin code [closed]

There aren’t really any good filters/hooks that are going to allow you to place the custom drop down control where you’d like. What you should do instead is create a new template from an existing one, then add your widget code in. I’m going to edit “gallery.php”, but you must edit album.php or whichever gallery … Read more

Why does using excerpt_more filter change link location?

Filters are for modifying values before they are output. Typically the function is passed some value where you can modify it or overwrite it, then pass the result back. Your link is appearing out of place because you’re outputting the value directly, change it to return instead. Also note that most template tags have versions … Read more

Admin New Order: Autofocus on Search a product

This is a Backbone modal, wc-modal-add-products, defined in html-order-items.php and triggered by meta-boxes-order.js. You say you’ve marked the field autofocus. This StackOverflow answer proposed adding an onRender handler to the modal that finds autofocus and selects it: $(this.el).find(‘:input[autofocus]’).focus(); I don’t know where the best place to put this is, but if you find the WCBackboneModal … Read more

Auto append text after the title?

If I understand you correctly, then the_title hook should help you. You can assign your filter to it and modify the title as you wish: add_filter( ‘the_title’, function( $title, $id ) { return $title . ‘ – Lorem ipsum’; }, 10, 2 );

WooCommerce comments_template Filter Not Firing

Okay, for anyone looking to include the WooCommerce review tab not on an actual single-product page here’s the secret sauce: In your template file, you need: global $withcomments; $withcomments = true; Then add a filter for the comments template: //add filter to use our custom review template add_filter(‘comments_template’,'{{YOUR_HELPER_FUNCTION}}’); /** * Hook function for using custom … Read more