2019-10-23, 03:15:46
I need a function which returns whether the page has content or not. So i modified the function get_page_content() in this way
Can you include it in the core so that it can be called by get_page_content(FALSE)?
Thx
Alex
PHP Code:
function get_page_content($echo = true) {
global $content;
exec_action('content-top');
$content = strip_decode($content);
$content = exec_filter('content',$content);
if(getDef('GSCONTENTSTRIP',true)) $content = strip_content($content);
if ($echo) {
echo $content;
} else {
return $content;
}
exec_action('content-bottom');
}
Thx
Alex