Skip to content

Comments

Return value instead of echoing it in admin_footer_text callback#6

Open
TobiasBg wants to merge 1 commit intonarinder9:masterfrom
TobiasBg:patch-1
Open

Return value instead of echoing it in admin_footer_text callback#6
TobiasBg wants to merge 1 commit intonarinder9:masterfrom
TobiasBg:patch-1

Conversation

@TobiasBg
Copy link

@TobiasBg TobiasBg commented Nov 3, 2023

Filter hook callbacks must return their value, and not directly echo it.

This otherwise creates problem for other plugins (like mine), as they then get passed null as the filter hook variable.

Filter hook callbacks must `return` their value, and not directly `echo` it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant