Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ACF Template Builder - Add a custom shortcode attribute
add_filter( 'bbacf/helpers/sc_attr/type=google_map' , 'add_color_sc_attribute' );
/**
* add the postid attribute to the default sc attr
* @param [type] $array [description]
* @return [type] [description]
*/
function add_color_sc_attribute( $array ) {
return array_merge(
$array,
array(
'color' => null,
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.