I am developing a Plugin.
I’ve developed the core of my plugin, I’ve also developed a Widget that I need to use with my plugin, but now I don’t know where else to find information.
What I need to do, is this: in my Plugin’s Widget I want to put a link “Register here!!!”, and when the user clicks there take him to a page like http://mysite.com/my_plugin_register
And there display a form so the user can register.
Is there any action hook to do this? Where can I find any example?
To get your widget to work you will create a class for your widget that extends the WP_Widget class. Example is below:
You can find more information on WP_Widget at the widgets API page
To create your page you should use a shortcode and put your form in the function for that.
You will then in the WordPress Dashboard create a page with the slug ‘my_plugin_register’ and add the following content to it
Here is the shortcode API page for more information.