Skip to:
Content

BuddyPress.org

Opened 17 years ago

Closed 17 years ago

#1041 closed enhancement (no action required)

navigation - being able to specify a function for 'screen_function' which is inside a class

Reported by: grosbouff Owned by:
Priority: minor Milestone: 1.2
Component: Version:
Severity: Keywords:
Cc: djpaul

Description

For bp_core_new_subnav_item; etc;
for the arguement 'screen_function', there should be a way to define a function contained inside a class;

like :

'screen_function' => array(&$this, 'screen')

Change History (3)

#1 @djpaul
17 years ago

  • Cc djpaul added
  • Milestone 1.11.2
  • Priority majorminor

#2 @apeatling
17 years ago

This is already possible:

		if ( !is_object($screen_function[0]) )
			add_action( 'wp', $screen_function, 3 );
		else
			add_action( 'wp', array( &$screen_function[0], $screen_function[1] ), 3 );

#3 @apeatling
17 years ago

  • Resolutioninvalid
  • Status newclosed
Note: See TracTickets for help on using tickets.