Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 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's profile grosbouff Owned by:
Milestone: 1.2 Priority: minor
Severity: Version:
Component: 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
15 years ago

  • Cc djpaul added
  • Milestone changed from 1.1 to 1.2
  • Priority changed from major to minor

#2 @apeatling
15 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
15 years ago

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.