Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Plugin Developers: Changes around $bp global


Devrim
Participant

@devrim

$test is empty. no matter what we do.

/wp-content/mu-plugins/x.php

<?php

require_once( ‘bp-core.php’ );

global $bp, $wpdb, $current_blog;

require_once( ‘x/classes/DB_Operations.php’ );

require_once( ‘x/classes/FS_Operations.php’ );

require_once( ‘x/classes/POST_Operations.php’ );

require_once( ‘x/classes/Render_to_Browser.php’ );

require_once( ‘x/classes/x_Environment.php’ );

require_once( ‘x/classes/File.php’ );

require_once( ‘x/classes/Notification.php’ );

$init_environment = new x_Environment();

$doPostActions = new POST_Operations();

$test = $bp->loggedin_user->id;

?>

Skip to toolbar