\PSV_CPT_UI

The admin UI class. Loads our plugin custom post type UI.

Summary

Methods
Properties
Constants
get_instance()
__construct()
split_view_ui()
select_type()
insert_content()
insert_footer()
$type_options
No constants found
get_post_options()
$instance
N/A
No private methods found
No private properties found
N/A

Properties

$type_options

$type_options : array

Holds array of types of content available for a user to insert.

Type

array

$instance

$instance : object

Plugin instance.

Type

object

Methods

get_instance()

get_instance() : object

Access this plugin’s working instance

Returns

object —

instance of this class

__construct()

__construct()

Intentionally left blank

split_view_ui()

split_view_ui(\WP_Post $post)

Render Meta Box content.

Parameters

\WP_Post $post

The post object.

select_type()

select_type(string $side) : string

Insert the selct type fields

The first step in creating a split view

Parameters

string $side

which side fields belong to.

Returns

string —

html for fields for left or right side.

insert_content()

insert_content(string $side) : string

Insert content fields

Parameters

string $side

the side to load the content for

Returns

string —

html for insert content sections.

insert_footer()

insert_footer() : string

Insert the modal usede to insert content using the WYSIWYG editor in the aplit view.

Returns

string —

the html for the modal

get_post_options()

get_post_options() : array

Get a list of all post and pages for our select dropdown

Returns

array —

all posts and pages in array format: post_title => id