PHP 클래스 PodsInit, pods

파일 보기 프로젝트 열기: pods-framework/pods 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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