Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

[Closed] There are versions of wpforo functions that return string?

4 Posts
2 Users
1 Reactions
1,466 Views
Posts: 18
Topic starter
(@mpanichi)
Eminent Member
Joined: 4 years ago

I noticed that some wpforo functions echo directly, instead of returning a string.

For example wpforo_unread, wpforo_phrase, wpforo_topic_title, ecc

This can't allow developers to manipulate the value generated by the functions, nor allow to put save them in a variable.

There are versions of these functions that return string?

(moreover: there is a developer documentation? I didn't find it)

Thanks 🙂


3 Replies
Posts: 18
Topic starter
(@mpanichi)
Eminent Member
Joined: 4 years ago

Up 😘 


Chris
Posts: 3610
(@chris)
Famed Member
Joined: 4 years ago

Hi @mpanichi,

all of these Functions have argument named $echo, if you call the function with $echo argument = false it would not print the string, it will only return.


Posts: 18
Topic starter
(@mpanichi)
Eminent Member
Joined: 4 years ago

Amazing 👍