![]() |
Vb Api Extension returns data and shows always after <body>
I am creating a Api Extension with the help of Wordpress Header & Footer Integation
I am almost done and everything seems to be in order except, whenever I return a data, it always goes on the top of the browser, after the <body> tag, example given below: PHP Code:
PHP Code:
|
The echo statement is the problem. VB wants to display the returned data. Assign your data to a variable and return the variable.
$data = '<h1>My Custom Footer</h1>'; return $data; |
Quote:
PHP Code:
|
Using an echo will show at the top of the page like a debug marker. You need to remove the echo.
in your snippet, you're doing "return;" You need to put the data in a variable and "return $data;" |
All times are GMT. The time now is 12:50 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|