jaredcobb / ccb-core

Church Community Builder Core API - A WordPress plugin to sync your church data
http://www.wpccb.com
GNU General Public License v2.0
8 stars 5 forks source link

Add location support #3

Closed nicholaspetersen closed 6 years ago

nicholaspetersen commented 7 years ago

Creates a “calendar_location” field and pull’s in the location of the event.

nicholaspetersen commented 7 years ago

Ah, very good. Thanks! Been digging the plugin.

On Nov 6, 2016, at 11:54 AM, Jared Cobb notifications@github.com wrote:

@jaredcobb commented on this pull request.

In admin/class-ccb-core-cpts.php https://github.com/jaredcobb/ccb-core/pull/3#pullrequestreview-7337381:

@@ -310,6 +310,10 @@ public static function get_calendar_custom_fields_map() { 'api_mapping' => 'event_duration', 'data_type' => 'int', ),

  • 'calendar_location' => array( @nicholaspetersen https://github.com/nicholaspetersen thanks for the PR, this looks great. i'm actually in the process of cleaning up some of this code and fixing some bugs so i'll merge this in with my changes.

in the mean time, if you want, you can use a filter to adjust these definitions (see https://github.com/jaredcobb/ccb-core/blob/1a6e88b47ad7d5293e88bac277e72cbc4e33a602/admin/class-ccb-core-sync.php#L669 https://github.com/jaredcobb/ccb-core/blob/1a6e88b47ad7d5293e88bac277e72cbc4e33a602/admin/class-ccb-core-sync.php#L669)

for example, in your theme / plugin you can do something like

function my_theme_add_ccb_location( $calendar_custom_fields_map ) { $calendar_custom_fields_map['calendar_location'] = array( 'api_mapping' => 'location', 'data_type' => 'string', ); return $calendar_custom_fields_map; } add_filter( 'ccb_get_calendar_custom_fields_map', 'my_theme_add_ccb_location', 10, 1 ); — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jaredcobb/ccb-core/pull/3#pullrequestreview-7337381, or mute the thread https://github.com/notifications/unsubscribe-auth/ABoUdLIJfJU6zRSLCsjpLfzgIPy9VR85ks5q7hRagaJpZM4Kqmq7.

jaredcobb commented 6 years ago

Group images are supported in 1.0.0 via filters and user options.