PHP 클래스 Nova_Restaurant, jetpack

Bulk/Quick edit response of Menu Item rows is broken. Drag and Drop reordering.
파일 보기 프로젝트 열기: automattic/jetpack 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$version

보호된 프로퍼티들

프로퍼티 타입 설명
$default_menu_item_loop_markup
$menu_item_loop_current_term
$menu_item_loop_last_term_id
$menu_item_loop_markup

공개 메소드들

메소드 설명
__construct ( )
add_admin_menus ( ) Add Many Items
add_many_new_items_page ( )
add_many_new_items_page_load ( ) * Edit Many Items
add_post_meta ( $post_id )
add_to_dashboard ( ) Add to Dashboard At A Glance
admin_notices ( ) * Edit Items List
change_default_title ( $title ) Change ‘Enter Title Here’ text for the Menu Item.
current_screen_load ( )
display_price ( $post_id )
edit_menu_items_page_load ( )
enqueue_many_items_scripts ( )
enqueue_nova_styles ( $hook ) Nova Styles and Scripts
get_menu_by_post_id ( $post_id = null )
get_menu_item_loop_markup ( $field = null ) * Does not support nested loops
get_menu_item_menu_leaf ( $post_id )
get_menus ( $args = [] ) * Data
get_price ( $post_id )
handle_menu_item_actions ( )
init ( $menu_item_loop_markup = [] )
is_menu_item_query ( $query ) Query
list_admin_labels ( $post_id )
list_labels ( $post_id )
maybe_reorder_menu_items ( ) Fires on a menu edit page. We might have drag-n-drop reordered
menu_item_column_callback ( $column, $post_id )
menu_item_columns ( $columns )
menu_item_loop_class ( string $class ) : string Returns a Menu Item Markup element's class attribute.
menu_item_loop_close_element ( string $field ) Outputs a Menu Item Markup element closing tag
menu_item_loop_each_post ( $post ) Outputs the Menu Item Loop Marku Attached to the 'the_post' action.
menu_item_loop_header ( ) Outputs the Menu Group Header
menu_item_loop_open_element ( string $field ) Outputs a Menu Item Markup element opening tag
menu_item_price_meta_box ( $post, $meta_box )
no_title_sorting ( $columns )
process_form_request ( )
register_menu_item_meta_boxes ( ) * Edit One Item
register_post_types ( )
register_taxonomies ( ) Register Taxonomies and Post Type
set_custom_font_icon ( ) Custom Nova Icon CSS
set_price ( $post_id, $price = '' )
setup_menu_item_columns ( )
setup_menu_item_loop_markup__in_filter ( $template ) : string Sets up the loop markup.
show_menu_titles_in_menu_item_list ( $post ) * Add menu title rows to the list table
site_supports_nova ( ) Should this Custom Post Type be made available?
sort_menu_item_queries_by_menu_order ( $query )
sort_menu_item_queries_by_menu_taxonomy ( $posts, $query )
start_menu_item_loop ( $query ) If the Query is a Menu Item Query, start outputing the Menu Item Loop Marku Attached to the 'loop_start' action.
stop_menu_item_loop ( $query ) If the Query is a Menu Item Query, stop outputing the Menu Item Loop Marku Attached to the 'loop_end' action.
updated_messages ( $messages ) Update messages for the Menu Item admin.

메소드 상세

__construct() 공개 메소드

public __construct ( )

add_admin_menus() 공개 메소드

Add Many Items
public add_admin_menus ( )

add_many_new_items_page() 공개 메소드

add_many_new_items_page_load() 공개 메소드

* Edit Many Items

add_post_meta() 공개 메소드

public add_post_meta ( $post_id )

add_to_dashboard() 공개 메소드

Add to Dashboard At A Glance
public add_to_dashboard ( )

admin_notices() 공개 메소드

* Edit Items List
public admin_notices ( )

change_default_title() 공개 메소드

Change ‘Enter Title Here’ text for the Menu Item.
public change_default_title ( $title )

current_screen_load() 공개 메소드

public current_screen_load ( )

display_price() 공개 메소드

public display_price ( $post_id )

edit_menu_items_page_load() 공개 메소드

enqueue_many_items_scripts() 공개 메소드

enqueue_nova_styles() 공개 메소드

Nova Styles and Scripts
public enqueue_nova_styles ( $hook )

get_menu_by_post_id() 공개 메소드

public get_menu_by_post_id ( $post_id = null )

get_menu_item_loop_markup() 공개 메소드

* Does not support nested loops
public get_menu_item_loop_markup ( $field = null )

get_menu_item_menu_leaf() 공개 메소드

public get_menu_item_menu_leaf ( $post_id )

get_menus() 공개 메소드

* Data
public get_menus ( $args = [] )

get_price() 공개 메소드

public get_price ( $post_id )

handle_menu_item_actions() 공개 메소드

init() 정적인 공개 메소드

static public init ( $menu_item_loop_markup = [] )

is_menu_item_query() 공개 메소드

Query
public is_menu_item_query ( $query )

list_admin_labels() 공개 메소드

public list_admin_labels ( $post_id )

list_labels() 공개 메소드

public list_labels ( $post_id )

maybe_reorder_menu_items() 공개 메소드

Fires on a menu edit page. We might have drag-n-drop reordered

menu_item_column_callback() 공개 메소드

public menu_item_column_callback ( $column, $post_id )

menu_item_columns() 공개 메소드

public menu_item_columns ( $columns )

menu_item_loop_class() 공개 메소드

Returns a Menu Item Markup element's class attribute.
public menu_item_loop_class ( string $class ) : string
$class string Class name.
리턴 string HTML class attribute with leading whitespace.

menu_item_loop_close_element() 공개 메소드

Outputs a Menu Item Markup element closing tag
public menu_item_loop_close_element ( string $field )
$field string - Menu Item Markup settings field

menu_item_loop_each_post() 공개 메소드

Outputs the Menu Item Loop Marku Attached to the 'the_post' action.
public menu_item_loop_each_post ( $post )

menu_item_loop_header() 공개 메소드

Outputs the Menu Group Header

menu_item_loop_open_element() 공개 메소드

Outputs a Menu Item Markup element opening tag
public menu_item_loop_open_element ( string $field )
$field string - Menu Item Markup settings field.

menu_item_price_meta_box() 공개 메소드

public menu_item_price_meta_box ( $post, $meta_box )

no_title_sorting() 공개 메소드

public no_title_sorting ( $columns )

process_form_request() 공개 메소드

register_menu_item_meta_boxes() 공개 메소드

* Edit One Item

register_post_types() 공개 메소드

public register_post_types ( )

register_taxonomies() 공개 메소드

Register Taxonomies and Post Type
public register_taxonomies ( )

set_custom_font_icon() 공개 메소드

Custom Nova Icon CSS

set_price() 공개 메소드

public set_price ( $post_id, $price = '' )

setup_menu_item_columns() 공개 메소드

setup_menu_item_loop_markup__in_filter() 공개 메소드

Attached to the 'template_include' *filter*, which fires only during a real blog view (not in admin, feeds, etc.)
public setup_menu_item_loop_markup__in_filter ( $template ) : string
리턴 string Template File. VERY Important.

show_menu_titles_in_menu_item_list() 공개 메소드

* Add menu title rows to the list table

site_supports_nova() 공개 메소드

Should this Custom Post Type be made available?
public site_supports_nova ( )

sort_menu_item_queries_by_menu_order() 공개 메소드

sort_menu_item_queries_by_menu_taxonomy() 공개 메소드

public sort_menu_item_queries_by_menu_taxonomy ( $posts, $query )

start_menu_item_loop() 공개 메소드

If the Query is a Menu Item Query, start outputing the Menu Item Loop Marku Attached to the 'loop_start' action.
public start_menu_item_loop ( $query )

stop_menu_item_loop() 공개 메소드

If the Query is a Menu Item Query, stop outputing the Menu Item Loop Marku Attached to the 'loop_end' action.
public stop_menu_item_loop ( $query )

updated_messages() 공개 메소드

Update messages for the Menu Item admin.
public updated_messages ( $messages )

프로퍼티 상세

$default_menu_item_loop_markup 보호되어 있는 프로퍼티

protected $default_menu_item_loop_markup

$menu_item_loop_current_term 보호되어 있는 프로퍼티

protected $menu_item_loop_current_term

$menu_item_loop_last_term_id 보호되어 있는 프로퍼티

protected $menu_item_loop_last_term_id

$menu_item_loop_markup 보호되어 있는 프로퍼티

protected $menu_item_loop_markup

$version 공개적으로 프로퍼티

public $version