Disciple_Tools_People_Groups_Post_Type

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

package

Disciple_Tools\People_Groups

author

Chasm.Solutions & Kingdom.Training

since 0.1.0

Methods

Constructor function.

__construct() 
access

public

since 0.1.0

Run on activation.

activation() 
access

public

since 0.1.0

dt_get_post_type_settings

dt_get_post_type_settings( $settings,  $post_type) 

Arguments

$settings

$post_type

dt_registered_post_types

dt_registered_post_types( $post_types) 

Arguments

$post_types

Customise the "Enter title here" text.

enter_title_here(string $title) : string
access

public

since 0.1.0

Arguments

$title

string

Response

string

Flush the rewrite rules

flush_rewrite_rules() 
access

public

since 0.1.0

Get the settings for the custom fields.

get_custom_fields_settings() : array
access

public

since 0.1.0

Response

array

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

instance() : \Disciple_Tools_People_Groups_Post_Type
static
since 0.1.0
static

Response

\Disciple_Tools_People_Groups_Post_Type

instance

load_add_update_meta_box

load_add_update_meta_box( $post) 

Arguments

$post

Load activity metabox

load_details_meta_box() 

Load activity metabox

load_jp_meta_box() 

Load translation metabox

load_translation_meta_box() 

The contents of our meta box.

meta_box_content(string $section = 'info') 

Arguments

$section

string

Save meta box fields.

meta_box_save( $post_id) : mixed

Arguments

$post_id

Response

mixed

Setup the meta box.

meta_box_setup() : void
access

public

since 0.1.0

Field: People Group Fields

people_group_fields() : array

Response

array

Add custom column headings for the "manage" screen of this post type.

register_custom_column_headings(array $defaults) : array
access

public

since 0.1.0

Arguments

$defaults

array

Response

array

Add custom columns for the "manage" screen of this post type.

register_custom_columns( $column_name) 

Arguments

$column_name

Register the post type.

register_post_type() : void
access

public

Remove the add new submenu from the locaions menu

remove_add_new_submenu() 

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_People_Groups_Post_Type The single instance of Disciple_Tools_People_Groups_Post_Type.

_instance : object
static
var
access

private

since

Type(s)

object