Created
December 22, 2016 09:34
-
-
Save badabingbreda/a620189bce152cb92af6e2b9ccb412b2 to your computer and use it in GitHub Desktop.
ACF Template Builder - Add a custom shortcode attribute
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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