-
Notifications
You must be signed in to change notification settings - Fork 0
For Developers: Objects, Arrays, and Variables
Dave Mackey edited this page Jan 28, 2020
·
1 revision
Our base class is GC_Sermons_Plugin. An instance is created using $single_instance. To this instance we then attach a number of other objects, methods, and properties.
- Version of Plugin: VERSION
- URL of Plugin Directory: $url
- Path of Plugin Directory: $path
- Plugin Basename: $basename
- Singleton of Plugin: $single_instance
- Plugin Requirements = $requirements
- Missed Requirements = $missed_requirements
- Instance of GCS_Sermons = $sermons
- Instance of GCS_Taxonomies = $taxonomies
- instance of GCS_Shortcodes = $shortcodes
- Instance of GCS_Async = $async
- __construct
- activate
- get_instance
- deactivate
- hooks
- plugin_classes
- register_required_plugin
- init
- __get
WP_Post is wrapped by GCS_Sermon_Post.
- WP Post: $post
- Media Data = $media
- Image Data = $images
- Series Terms = $series
- Scripture Terms = $scripture
- Single Series Term = $single_series
- Single Series Term = $single_series
- Speakers Term = $speakers
- Single Speaker Term = $speaker
- Topic Terms = $topics
- Tag Terms = $tags
- __construct
- init_media
- add_media_type
- get_video_player
- permalink - wrapper for get_permalink
- title - wrapper for get_the_title
- loop_excerpt - wrapper for the_excerpt
- featured_image - wrapper for get_the_post_thumbnail
- featured_image_id - wrapper for get_post_thumbnail_id
- series_image
- get_speakers
- get_speaker
- get_series
- get_scriptures
- get_others_in_series
- get_others_by_speaker
- series - wrapper for get_the_terms
- scripture - wrapper for get_the_terms
- speakers - wrapper for get_the_terms
- topics - wrapper for get_the_terms
- tags - wrapper for get_the_terms
- init_taxonomy
- get_meta - wrapper for get_post_meta
- __get
- __isset
- translate_property
Our sermon class inherits from GCS_Post_Types_Base which in turn inherits from CPT_Core.
- Parent Plugin Class: $plugin
- Identifier of Object: $id
- Overrides Processed: $overrides_processed
- Bypass Temporary Cache: $flush
- Default WP_Query Args: $query_args
- $sermon
- __construct
- filter_values
- post_type
- hooks
- new_cmb2
- __get
- admin_hooks
- check_sermon_duplicate_video
- remove_default_boxes_for_sermons
- featured_image_fallback_to_series_image
- save_future_as_published
- label_coming_soon
- fields
- get_excerpt
- columns
- columns_display
- columns_sortable
- columns_sort_func
- admin_column_css
- most_recent_with_video
- most_recent
- most_recent_with_media
- get
- get_many
- most_recent_with_taxonomy
- find_sermon_with_taxonomy