Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Dev ask: How to have “hello-here-admin-main” function via public shortcode

$
0
0

Replies: 0

Hi goliver79,
I am exploring ways of contributing to the plugin. Your code is super great, but I am still having some problems in understanding how it works. Would you be so kind and comment:

What I want to do is to have the same functionality that is on the admin side (hello-here-admin-main.php), but instead of having it just there, also have it on the shortcode and on the public part (I assume the template being under public/partials?).

Why? I want to any user allow to book, delete and see the rooms themselves. Therefore I have added user_id to the db table as a relationship. And I want simply to have a shortcode that I could paste in any page and have the functionality there.

I’d appreciate your guidance as I would like to try to follow your way of writing things. 🙂


Viewing all articles
Browse latest Browse all 59525

Trending Articles