Support » Plugin: Amazing WP e-Commerce » Interesting idea

  • I think if wrapping these functions in utility functions for yourself locally works for you, that’s great. If it works on your client sites, wonderful. However, to consider prefixed functions as confusing is itself confusing.

    Prefixing utility functions is a programming best practice to avoid what will undoubtedly happen eventually – another plugin (or theme, or functions.php file, or something else) will use the same, unprefixed function name, and you’ll have a collision resulting in fatal errors.

    That’s why it’s really important to prefix your functions. “wpsc” is only two more letters than “wp” – and I can’t count how many utility functions exist within WordPress with that prefix.

    http://wordpress.org/extend/plugins/amazing-wp-e-commerce/

Viewing 1 replies (of 1 total)
  • Plugin Author Risto Niinemets

    (@ristoniinemets)

    I totally agree. I actually have not thought about it much, though I originally created it for myself to have a way around these built-in WP e-Commerce functions that will eventually get annoying – especially when I started working with WPEC (more than half a year ago).

    However, to be honest, I have not used the shorthand functions anymore as the functions will stick to your head. But I am sure that it can help beginners.

    Did you try out the other features? It would be nice to have some comments and reviews for feedback.

    Thank you for the comment.

Viewing 1 replies (of 1 total)
  • The topic ‘Interesting idea’ is closed to new replies.