Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

Suggestion I want to create a WordPress plugin for my hour calculator tool — advice?

3 Posts
3 Users
0 Reactions
119 Views
Posts: 1
Topic starter
(@jhonnmarie)
New Member
Joined: 4 weeks ago

Hi everyone,

I run a website called https://calculadoradehoras.io , which provides a clean and mobile-friendly tool for calculating work hours in Spanish. I'm now looking to create a simple WordPress plugin so others can easily embed the calculator into their own sites or forums (possibly even inside wpForo posts).

I’d like to start with something lightweight—maybe using an iframe or a shortcode that loads the calculator tool—and eventually build in localization features.

A few questions I’d love your input on:

  • What’s the best way to structure a simple plugin for embedding tools like this?
  • Can wpForo posts support plugin shortcodes or embed content from an external tool like mine?
  • Has anyone here created similar utility plugins before and could share some best practices?

Any advice or examples would be hugely appreciated!

Thanks,
Jhonn Marie

2 Replies
Sofy
Posts: 5483
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 years ago

Hi,

The only way to achieve this is by using the add_shortcode() function in WordPress.
You can find more information here: add_shortcode()

WordPress Developer Reference: https://developer.wordpress.org/reference/functions/add_shortcode/

Using this function, you can perform various actions such as calculations, outputting content, and more.

Reply
Posts: 10
(@jungle)
Active Member
Joined: 4 weeks ago

Thanks for sharing that, Sofy. The The add_shortcode() approach looks like a solid starting point. I’m also curious if anyone here has tried loading external tools via iframe in a shortcode, wondering about any limitations or styling issues that might come up.

Reply