PHP Класс PodsInit, pods

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

Setup and Initiate Pods
С версии: 1.8.9
public __construct ( ) : PodsInit
Результат PodsInit

activate() публичный Метод

public activate ( )

activate_install() публичный Метод

Activate and Install
public activate_install ( )

add_rest_support() публичный Метод

Add REST API support to post type and taxonomy objects.
С версии: 2.5.6
public add_rest_support ( )

admin_init() публичный Метод

Include Admin
public admin_init ( )

core() публичный Метод

Set up the Pods core
public core ( )

deactivate() публичный Метод

public deactivate ( )

delete_attachment() публичный Метод

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

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
public flush_rewrite_rules ( )

init() публичный статический Метод

Singleton handling for a basic pods_init() request
С версии: 2.3.5
public static init ( ) : PodsInit
Результат PodsInit

load_components() публичный Метод

Load Pods Components
public load_components ( )

load_meta() публичный Метод

Load Pods Meta
public load_meta ( )

needs_upgrade() публичный Метод

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

new_blog() публичный Метод

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 object_label_fix ( $args, string $type = 'post_type' ) : array
$args
$type string
Результат array

plugins_loaded() публичный Метод

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

register_assets() публичный Метод

Register Scripts and Styles
public register_assets ( )

register_pods() публичный Метод

Register internal Post Types
public register_pods ( )

register_widgets() публичный Метод

Register widgets for Pods
public register_widgets ( )

reset() публичный Метод

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

run() публичный Метод

public run ( )

setup() публичный Метод

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

setup_content_types() публичный Метод

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

setup_updated_messages() публичный Метод

Update Post Type messages
С версии: 2.0.2
public setup_updated_messages ( array $messages ) : array
$messages array
Результат array

Описание свойств

$admin статическое публичное свойство

static public PodsAdmin $admin
Результат PodsAdmin

$components статическое публичное свойство

static public PodsComponents $components
Результат PodsComponents

$content_types_registered статическое публичное свойство

static public array $content_types_registered
Результат array

$db_version статическое публичное свойство

static public mixed|void $db_version
Результат mixed | void

$instance статическое публичное свойство

static public PodsInit $instance
Результат PodsInit

$meta статическое публичное свойство

static public PodsMeta $meta
Результат PodsMeta

$no_conflict статическое публичное свойство

static public array $no_conflict
Результат array

$upgrade_needed статическое публичное свойство

Whether an Upgrade is needed
static public bool $upgrade_needed
Результат boolean

$upgraded статическое публичное свойство

Whether an Upgrade for 1.x has happened
static public bool $upgraded
Результат boolean

$upgrades статическое публичное свойство

Upgrades to trigger (last installed version => upgrade version)
static public array $upgrades
Результат array

$version статическое публичное свойство

static public mixed|void $version
Результат mixed | void

$version_last статическое публичное свойство

static public mixed|void $version_last
Результат mixed | void