Articles of plugins

WooCommerce Variable Product Price – Where is “From” text generated from?

The following code from github will add “- [max price]” to all variable products displayed in product archives. I am wondering how I could also remove the “From” text inside the same filter. add_filter(‘woocommerce_variable_price_html’, ‘custom_variation_price’, 10, 2); function custom_variation_price( $price, $product ) { $price = ”; if ( !$product->min_variation_price || $product->min_variation_price !== $product->max_variation_price ) $price […]

Hook to generate a dynamic sitemap with “All in One SEO Pack” Plugin

Besides the urls of posts, pages and categories, I need my site’s sitemap to include the urls of various pages that display data coming from an external source other than the WP database (Rails API). Is there a hook to which I can add a filter so that once Dynamic Sitemap Generation takes place, I […]

View the source code of a 3rd party plugin?

I have added a plugin to my WordPress site. How can I get the source code of this plugin?

Possible to add a language file to a plugin without adding .po/.mo files to plugin directory?

I need to add a language file to an existing plugin. Not for translation reasons, but because I’d like to change all occurrences of a certain word to something else. While I could just drop another .po/.mo file set into the plugin’s languages directory, I don’t want to lose the language file when the plugin […]

I don't understand how this parameter works..?

Ok, I’ve got this simple code for a simple plugin which prepends post titles with the word TESTING.. I’m really unclear how the parameter works here. I understand how parameters work in PHP, but nothing has been passed inside this parameter for WordPress to know the variable is the title.. if that makes sense?? Don’t […]

Dynamic CSS Vs Inline Issues in Code any Way around in a WordPress Themes?

One of my Developer has used this kind of Code to style – <div class=”progress-bar progress-bar-striped custom-color-progress” role=”progressbar” aria-valuenow=”<?php echo $percentage?>” aria-valuemin=”0″ aria-valuemax=”100″ style=”width:<?php echo $percentage * 100?>%”></div> Bu few experts believes that this – style=”width:<?php echo $percentage * 100?>%” looks ultimately hard coded(or Inline CSS in Browser) and is not what one may look […]

Rewrite url without flushing the database?

Is it possible to create a rewrite in WP dynamically such that no flushing is required? For example, not storing the rewrite in the database but rather defined in my plugin code?

How to Add Custom Taxonomy To Woocommerce Plugin

I am trying to add a Custom Taxonomy to Woocommerce by targeting the product post type in Woocommerce. I used following code and added it into functions.php I am not getting any error message but the taxonomy is not showing in the Woocommerce as well. Can you please let me know how I can do […]

Use touch_time() on front-end form via plugin

I’m working on a plug-in that let people create posts from front-end form. I want to add date&time fields in the form using touch_time() but don’t know how to use it on front-end. I have <div id=”timestampdiv” class=”hide-if-js”><?php touch_time(0, 0, 5); ?></div> on the front-end form which giving me an error message Fatal error: Call […]

Custom plugins/Manipulated plugins: Always a terrible idea to inherit these types of WP sites that discourage updates?

So I have been working on WP sites for a little bit now and I think I’m getting to the point where I’m starting to get to a wider range of clients with unique site builds. One site I was assigned to lately was a WP site that dealt with Automobile inventory and its biggest […]