PHP Class PodsInit, pods

Afficher le fichier Open project: pods-framework/pods Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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 méthode

Setup and Initiate Pods
Since: 1.8.9
public __construct ( ) : PodsInit
Résultat PodsInit

activate() public méthode

public activate ( )

activate_install() public méthode

Activate and Install
public activate_install ( )

add_rest_support() public méthode

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

admin_init() public méthode

Include Admin
public admin_init ( )

core() public méthode

Set up the Pods core
public core ( )

deactivate() public méthode

public deactivate ( )

delete_attachment() public méthode

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

flush_rewrite_rules() public méthode

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 méthode

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

load_components() public méthode

Load Pods Components
public load_components ( )

load_meta() public méthode

Load Pods Meta
public load_meta ( )

needs_upgrade() public méthode

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

new_blog() public méthode

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 méthode

public static object_label_fix ( $args, string $type = 'post_type' ) : array
$args
$type string
Résultat array

plugins_loaded() public méthode

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

register_assets() public méthode

Register Scripts and Styles
public register_assets ( )

register_pods() public méthode

Register internal Post Types
public register_pods ( )

register_widgets() public méthode

Register widgets for Pods
public register_widgets ( )

reset() public méthode

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

run() public méthode

public run ( )

setup() public méthode

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

setup_content_types() public méthode

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

setup_updated_messages() public méthode

Update Post Type messages
Since: 2.0.2
public setup_updated_messages ( array $messages ) : array
$messages array
Résultat array

Property Details

$admin static_oe public_oe property

static public PodsAdmin $admin
Résultat PodsAdmin

$components static_oe public_oe property

static public PodsComponents $components
Résultat PodsComponents

$content_types_registered static_oe public_oe property

static public array $content_types_registered
Résultat array

$db_version static_oe public_oe property

static public mixed|void $db_version
Résultat mixed | void

$instance static_oe public_oe property

static public PodsInit $instance
Résultat PodsInit

$meta static_oe public_oe property

static public PodsMeta $meta
Résultat PodsMeta

$no_conflict static_oe public_oe property

static public array $no_conflict
Résultat array

$upgrade_needed static_oe public_oe property

Whether an Upgrade is needed
static public bool $upgrade_needed
Résultat boolean

$upgraded static_oe public_oe property

Whether an Upgrade for 1.x has happened
static public bool $upgraded
Résultat boolean

$upgrades static_oe public_oe property

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

$version static_oe public_oe property

static public mixed|void $version
Résultat mixed | void

$version_last static_oe public_oe property

static public mixed|void $version_last
Résultat mixed | void