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.

 

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

4 Posts
2 Users
1 Reactions
1,179 Views
Posts: 18
Topic starter
(@mpanichi)
Eminent Member
Joined: 3 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: 3 years ago

Up 😘 

Chris
Posts: 3611
(@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: 3 years ago

Amazing 👍