Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: problem displaying single item


Kapil
Participant

@techkapil

My bp component working fine in 1.0.2 but giving me warning in 1.1.1

I replaced

bp_core_add_nav_item(

__( ‘Example’, ‘example ),

$bp->example->slug

);

by

$args = array(

‘name’ => __( ‘Example’, ‘example’ ),

‘slug’ => $bp->example->slug,

‘item_css_id’ => false,

‘show_for_displayed_user’ => true,

‘site_admin_only’ => false,

‘position’ => 99,

‘screen_function’ => false,

‘default_subnav_slug’ => false

);

bp_core_new_nav_item($args);

but giving me warning

call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ” was given in /opt/lampp/htdocs/wordpress-mu4/wp-includes/plugin.php on line 414

Thanks in advance :-)

Skip to toolbar