Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Hooks

by

Tips and Tricks HQ Support Portal › Forums › Simple PayPal Shopping Cart › Simple shopping Cart Troubleshooting › Hooks

Tagged: hook, hooks, Tweaks

  • This topic has 6 replies, 4 voices, and was last updated 14 years, 7 months ago by webroasters.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • January 22, 2010 at 6:17 pm #687
    Xarzu
    Member

    Where does one go to get a list of hooks and what they do?

    January 23, 2010 at 12:44 am #17450
    amin007
    Participant

    Hooks for WordPress or the simple shopping cart plugin?

    September 20, 2010 at 7:25 pm #17451
    webroasters
    Member

    I’m looking for the same thing. I would assume that Xarzu is referring to the plugin hooks.

    September 20, 2010 at 8:01 pm #17452
    wzp
    Moderator

    If you have access to a Unix/Linux/*nix command line, change to the plugin directory and issue the following shell command:

    grep add_shortcode *.php

    Essentially, you are looking for all occurrences of when/where a new short code is added to WordPress.

    The first argument to add_shortcodes is the shortcode string itself. The second argument is the name of the function that WordPress should call, when that shortcode is parsed.

    September 20, 2010 at 8:40 pm #17453
    webroasters
    Member

    Thanks for your reply. Yeah, I like Ubuntu Linux myself. It’s cool you’re a linux user. :D Anyways, what I’m looking for is a little different, I may be wrong about the term though. I thought “hooks” referred to the following example: add_menu(‘profile.php’,…, ‘my_function’); In other words, I want to add my own functions and code when events happen, like say, when an item is put in the cart. I hope I haven’t muddied anything up. Anyways…

    I also had a question about how to add Google Checkout. I can do the code, but I’m not quite sure exactly where to connect it to. If you could give me some pointers that would be great. I can also share this with you guys for free, if you’d like. I’d appreciate a little props though. :D. No biggie though.

    Thanks again.

    September 20, 2010 at 8:57 pm #17454
    wzp
    Moderator

    Some of my work is in the Unix System V code… yeah, *nix runs through my blood.

    “Hooks” refers to the ability to integrate your code into somebody else’s code. WordPress allows eStore and other plugins to hook into it (WordPress). eStore has the ability to hook into other “selected” plugins, and allows other “selected” plugins to hook into it (eStore). That’s what it means when you see Amin and Ivy talk about eStore integration.

    The only way you are going to hook into eStore is to get down and dirty with the code, unless Amin reveals the presence of an eStore API.

    On the subject of Google Checkout, please see:

    https://support.tipsandtricks-hq.com/forums/topic/google-checkout-revisted#post-7904

    September 20, 2010 at 9:06 pm #17455
    webroasters
    Member

    I appreciate that. I will look into the code and try to find what I’m looking for. Thank you very much, wzp. Have a good one.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ