PHP Class PodsInit, pods

Datei anzeigen Open project: pods-framework/pods Class Usage Examples

Public Properties

Property Type Description
$admin PodsAdmin
$components PodsComponents
$content_types_registered array
$db_version mixed | void
$instance PodsInit
$meta PodsMeta
$no_conflict array
$upgrade_needed boolean Whether an Upgrade is needed
$upgraded boolean Whether an Upgrade for 1.x has happened
$upgrades array Upgrades to trigger (last installed version => upgrade version)
$version mixed | void
$version_last mixed | void

Public Methods

Method Description
__construct ( ) : PodsInit Setup and Initiate Pods
activate ( )
activate_install ( ) Activate and Install
add_rest_support ( ) Add REST API support to post type and taxonomy objects.
admin_bar_links ( ) Add Admin Bar links
admin_init ( ) Include Admin
core ( ) Set up the Pods core
deactivate ( )
delete_attachment ( integer $_ID ) Delete Attachments from relationships
flush_rewrite_rules ( ) Check if we need to flush WordPress rewrite rules This gets run during 'init' action late in the game to give other plugins time to register their rewrite rules
init ( ) : PodsInit Singleton handling for a basic pods_init() request
load_components ( ) Load Pods Components
load_meta ( ) Load Pods Meta
needs_upgrade ( $current = null, $last = null )
new_blog ( $_blog_id, $user_id, $domain, $path, $site_id, $meta )
object_label_fix ( $args, string $type = 'post_type' ) : array
plugins_loaded ( ) Load the plugin textdomain and set default constants
register_assets ( ) Register Scripts and Styles
register_pods ( ) Register internal Post Types
register_widgets ( ) Register widgets for Pods
reset ( null $_blog_id = null )
run ( )
setup ( null $_blog_id = null )
setup_content_types ( $force = false ) Register Post Types and Taxonomies
setup_updated_messages ( array $messages ) : array Update Post Type messages

Method Details

__construct() public method

Setup and Initiate Pods
Since: 1.8.9
public __construct ( ) : PodsInit
return PodsInit

activate() public method

public activate ( )

activate_install() public method

Activate and Install
public activate_install ( )

add_rest_support() public method

Add REST API support to post type and taxonomy objects.
Since: 2.5.6
public add_rest_support ( )

admin_init() public method

Include Admin
public admin_init ( )

core() public method

Set up the Pods core
public core ( )

deactivate() public method

public deactivate ( )

delete_attachment() public method

Delete Attachments from relationships
public delete_attachment ( integer $_ID )
$_ID integer

flush_rewrite_rules() public method

Check if we need to flush WordPress rewrite rules This gets run during 'init' action late in the game to give other plugins time to register their rewrite rules
public flush_rewrite_rules ( )

init() public static method

Singleton handling for a basic pods_init() request
Since: 2.3.5
public static init ( ) : PodsInit
return PodsInit

load_components() public method

Load Pods Components
public load_components ( )

load_meta() public method

Load Pods Meta
public load_meta ( )

needs_upgrade() public method

public needs_upgrade ( $current = null, $last = null )

new_blog() public method

public new_blog ( $_blog_id, $user_id, $domain, $path, $site_id, $meta )
$_blog_id
$user_id
$domain
$path
$site_id
$meta

object_label_fix() public static method

public static object_label_fix ( $args, string $type = 'post_type' ) : array
$args
$type string
return array

plugins_loaded() public method

Load the plugin textdomain and set default constants
public plugins_loaded ( )

register_assets() public method

Register Scripts and Styles
public register_assets ( )

register_pods() public method

Register internal Post Types
public register_pods ( )

register_widgets() public method

Register widgets for Pods
public register_widgets ( )

reset() public method

public reset ( null $_blog_id = null )
$_blog_id null

run() public method

public run ( )

setup() public method

public setup ( null $_blog_id = null )
$_blog_id null

setup_content_types() public method

Register Post Types and Taxonomies
public setup_content_types ( $force = false )

setup_updated_messages() public method

Update Post Type messages
Since: 2.0.2
public setup_updated_messages ( array $messages ) : array
$messages array
return array

Property Details

$admin static_oe public_oe property

static public PodsAdmin $admin
return PodsAdmin

$components static_oe public_oe property

static public PodsComponents $components
return PodsComponents

$content_types_registered static_oe public_oe property

static public array $content_types_registered
return array

$db_version static_oe public_oe property

static public mixed|void $db_version
return mixed | void

$instance static_oe public_oe property

static public PodsInit $instance
return PodsInit

$meta static_oe public_oe property

static public PodsMeta $meta
return PodsMeta

$no_conflict static_oe public_oe property

static public array $no_conflict
return array

$upgrade_needed static_oe public_oe property

Whether an Upgrade is needed
static public bool $upgrade_needed
return boolean

$upgraded static_oe public_oe property

Whether an Upgrade for 1.x has happened
static public bool $upgraded
return boolean

$upgrades static_oe public_oe property

Upgrades to trigger (last installed version => upgrade version)
static public array $upgrades
return array

$version static_oe public_oe property

static public mixed|void $version
return mixed | void

$version_last static_oe public_oe property

static public mixed|void $version_last
return mixed | void