Disciple_Tools_Groups_Post_Type

Groups Post Type Class All functionality pertaining to post types in Disciple_Tools.

package

Disciple_Tools\Posts\Groups

category

Plugin

author

Chasm.Solutions & Kingdom.Training

since 0.1.0

Methods

Disciple_Tools_Groups_Post_Type constructor.

__construct(string $post_type = 'groups', string $singular = '', string $plural = '', array $args = array(), array $taxonomies = array('Cities')) 

Arguments

$post_type

string

$singular

string

$plural

string

$args

array

$taxonomies

array

Run on activation.

activation() 
access

public

since 0.1.0

Flush the rewrite rules

flush_rewrite_rules() 
access

public

since 0.1.0

get_channels_list

get_channels_list() 

Get the settings for the custom fields.

get_custom_fields_settings(boolean $include_current_post = true, integer|null $post_id = null, boolean $with_deleted_options = false, boolean $load_from_cache = true) : mixed

Arguments

$include_current_post

boolean

$post_id

integer|null

$with_deleted_options

boolean

$load_from_cache

boolean

Response

mixed

get_group_field_defaults

get_group_field_defaults( $post_id = null,  $include_current_post = null) 

Arguments

$post_id

$include_current_post

get_post_type_settings_hook

get_post_type_settings_hook( $settings,  $post_type) 

Arguments

$settings

$post_type

groups_rewrites_init

groups_rewrites_init() 

Main Disciple_Tools_Groups_Post_Type Instance Ensures only one instance of Disciple_Tools_Groups_Post_Type is loaded or can be loaded.

instance() : \Disciple_Tools_Groups_Post_Type
static
since 0.1.0
static

Response

\Disciple_Tools_Groups_Post_Type

instance

Register the post type.

register_post_type() : void
access

public

Properties

The post type token.

post_type : string
access

public

since
var

Type(s)

string

The post type singular label.

singular : string
access

public

since
var

Type(s)

string

The post type plural label.

plural : string
access

public

since
var

Type(s)

string

search_items

search_items : 

Type(s)

The post type args.

args : array
access

public

since
var

Type(s)

array

The taxonomies for this post type.

taxonomies : array
access

public

since
var

Type(s)

array

Disciple_Tools_Groups_Post_Type The single instance of Disciple_Tools_Groups_Post_Type.

_instance : object
static
var
access

private

since

Type(s)

object