Skip to content

Commit 4d1a522

Browse files
authored
Merge pull request #202 from andrewlimaza/profile-atts-filter
Add new filter `pmpro_member_profile_before_atts`
2 parents 4b10f8a + 1f3694d commit 4d1a522

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

templates/profile.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,14 @@ function pmpromd_profile_shortcode( $atts, $content=null, $code="" ) {
126126
$limit = 15;
127127

128128

129-
$shortcode_atts = array(
129+
/**
130+
* Filter to override the attributes passed into the shortcode.
131+
*
132+
* @since TBD
133+
*
134+
* @param array Contains all of the shortcode attributes used in the profile shortcode
135+
*/
136+
$shortcode_atts = apply_filters( 'pmpro_member_profile_before_atts', array(
130137
'avatar_size' => $avatar_size,
131138
'elements' => $elements,
132139
'fields' => $fields,
@@ -148,7 +155,7 @@ function pmpromd_profile_shortcode( $atts, $content=null, $code="" ) {
148155
'map_width' => $map_width,
149156
'map_max_zoom' => $map_max_zoom,
150157
'map_infowindow_width' => $map_infowindow_width,
151-
);
158+
) );
152159

153160
ob_start();
154161
?>

0 commit comments

Comments
 (0)