Add [staff_profile] shortcode for backward compatibility with sites already using [staff]
This commit is contained in:
@@ -23,6 +23,7 @@ class SP_Shortcodes {
|
||||
'player_details' => __CLASS__ . '::player_details',
|
||||
'player_statistics' => __CLASS__ . '::player_statistics',
|
||||
'staff' => __CLASS__ . '::staff',
|
||||
'staff_profile' => __CLASS__ . '::staff_profile',
|
||||
'event_calendar' => __CLASS__ . '::event_calendar',
|
||||
'event_list' => __CLASS__ . '::event_list',
|
||||
'event_blocks' => __CLASS__ . '::event_blocks',
|
||||
@@ -232,4 +233,15 @@ class SP_Shortcodes {
|
||||
public static function staff( $atts ) {
|
||||
return self::shortcode_wrapper( array( 'SP_Shortcode_Staff', 'output' ), $atts );
|
||||
}
|
||||
|
||||
/**
|
||||
* Staff profile shortcode.
|
||||
*
|
||||
* @access public
|
||||
* @param mixed $atts
|
||||
* @return string
|
||||
*/
|
||||
public static function staff_profile( $atts ) {
|
||||
return self::shortcode_wrapper( array( 'SP_Shortcode_Staff_Profile', 'output' ), $atts );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user