WPDK
1.5.0
WordPress Development Kit
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Pages
wpdk-metabox.php
Go to the documentation of this file.
1
<?php
12
class
WPDKMetaBoxView
extends
WPDKView
{
13
28
public
function
__construct
(
$id
, $title, $screen = null, $context =
WPDKMetaBoxContext::ADVANCED
,
29
$priority =
WPDKMetaBoxPriority::NORMAL
, $callback_args = null )
30
{
31
parent::__construct(
$id
);
32
add_meta_box(
$id
, $title, array(
33
$this,
34
'display'
35
), $screen, $context, $priority, $callback_args );
36
}
37
38
}
39
50
class
WPDKMetaBoxContext
{
51
const
ADVANCED
=
'advanced'
;
52
const
NORMAL
=
'normal'
;
60
const
SIDE
=
'side'
;
61
}
62
73
class
WPDKMetaBoxPriority
{
74
75
const
CORE
=
'core'
;
81
const
DEFAULT_
=
'default'
;
82
const
HIGH
=
'high'
;
83
const
LOW
=
'low'
;
89
const
NORMAL
=
'default'
;
90
const
SORTED
=
'sorted'
;
91
92
}