Jump to content

Calling Classes or Functions


banfw001

Recommended Posts

Hello All,

 

I am trying to turn a PHP application I made about a year ago into a WordPress plugin. I'm reasonably new in the world of WordPress plugins and have what I think will be a simple question. 

 

My plugin creates a shortcode, and when the WordPress page with that short code on is loaded, the program calls a function and displays it. My question is, within that function, how do I create a link or button (or something else) which will run the chosen function. Here is what I mean:

function welcome() {
?>Welcome. This is the first screen of the plugin. Click <a href="???">here</a> to register.
}

function register() {
register here
}

How would I make the above piece of code work. My thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/287479-calling-classes-or-functions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.