Calling wordpress plugin functions in bbpress
-
Is it possible to call wordpress plugin functions in bbpress?
I’ve added the deep integration code in bb-config.php:
/* Deep integration */
if ( !defined(‘ABSPATH’) & !defined(‘XMLRPC_REQUEST’))
{
define(‘WP_USE_THEMES’, false);
include_once(dirname(__FILE__) . ‘/../wp-blog-header.php’ );
header(“HTTP/1.1 200 OK”);
header(“Status: 200 All rosy”);
}
I added this too:
require_once(dirname(__FILE__) . ‘/../wp-load.php’);
define(‘WP_BB’, true);
However, i can only call the theme functions of wordpress i.e., get_header(), get_footer() etc…but i cannot get the wordpress plugin functions to work in my bbpress. I’m trying to call a function from a wordpress plugin named “Marquee” and placed it at the bottom of my bbpress template.
- You must be logged in to reply to this topic.