Notifications
Clear all

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

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

Up 😘 

Chris
Posts: 3649
(@chris)
Famed Member
Joined: 3 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: 2 years ago

Amazing 👍