Constants

MENU_ITEM_POST_TYPE

MENU_ITEM_POST_TYPE

MENU_ITEM_LABEL_TAX

MENU_ITEM_LABEL_TAX

MENU_TAX

MENU_TAX

Properties

$version

$version

$default_menu_item_loop_markup

$default_menu_item_loop_markup

$menu_item_loop_markup

$menu_item_loop_markup

$menu_item_loop_last_term_id

$menu_item_loop_last_term_id

$menu_item_loop_current_term

$menu_item_loop_current_term

Methods

init()

init( $menu_item_loop_markup)

Parameters

$menu_item_loop_markup

__construct()

__construct()

site_supports_nova()

site_supports_nova()

Should this Custom Post Type be made available?

register_taxonomies()

register_taxonomies()

register_post_types()

register_post_types()

is_menu_item_query()

is_menu_item_query( $query)

Parameters

$query

sort_menu_item_queries_by_menu_order()

sort_menu_item_queries_by_menu_order( $query)

Parameters

$query

sort_menu_item_queries_by_menu_taxonomy()

sort_menu_item_queries_by_menu_taxonomy( $posts,  $query)

Parameters

$posts
$query

add_admin_menus()

add_admin_menus()

current_screen_load()

current_screen_load()

admin_notices()

admin_notices()

no_title_sorting()

no_title_sorting( $columns)

Parameters

$columns

setup_menu_item_columns()

setup_menu_item_columns()

menu_item_columns()

menu_item_columns( $columns)

Parameters

$columns

menu_item_column_callback()

menu_item_column_callback( $column,  $post_id)

Parameters

$column
$post_id

get_menu_by_post_id()

get_menu_by_post_id( $post_id)

Parameters

$post_id

maybe_reorder_menu_items()

maybe_reorder_menu_items()

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

edit_menu_items_page_load()

edit_menu_items_page_load()

handle_menu_item_actions()

handle_menu_item_actions()

show_menu_titles_in_menu_item_list()

show_menu_titles_in_menu_item_list( $post)

Parameters

$post

add_many_new_items_page_load()

add_many_new_items_page_load()

enqueue_many_items_styles()

enqueue_many_items_styles()

enqueue_many_items_scripts()

enqueue_many_items_scripts()

process_form_request()

process_form_request()

add_many_new_items_page()

add_many_new_items_page()

register_menu_item_meta_boxes()

register_menu_item_meta_boxes()

menu_item_price_meta_box()

menu_item_price_meta_box( $post,  $meta_box)

Parameters

$post
$meta_box

add_post_meta()

add_post_meta( $post_id)

Parameters

$post_id

get_menus()

get_menus( $args)

Parameters

$args

get_menu_item_menu_leaf()

get_menu_item_menu_leaf( $post_id)

Parameters

$post_id

list_labels()

list_labels( $post_id)

Parameters

$post_id

list_admin_labels()

list_admin_labels( $post_id)

Parameters

$post_id

set_price()

set_price( $post_id,  $price)

Parameters

$post_id
$price

get_price()

get_price( $post_id)

Parameters

$post_id

display_price()

display_price( $post_id)

Parameters

$post_id

get_menu_item_loop_markup()

get_menu_item_loop_markup( $field)

Parameters

$field

setup_menu_item_loop_markup__in_filter()

setup_menu_item_loop_markup__in_filter( $template) : string

Sets up the loop markup.

Attached to the 'template_include' filter, which fires only during a real blog view (not in admin, feeds, etc.)

Parameters

$template

Returns

string —

Template File. VERY Important.

start_menu_item_loop()

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.

Parameters

$query

menu_item_loop_each_post()

menu_item_loop_each_post( $post)

Outputs the Menu Item Loop Marku Attached to the 'the_post' action.

Parameters

$post

stop_menu_item_loop()

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.

Parameters

$query

menu_item_loop_header()

menu_item_loop_header()

Outputs the Menu Group Header

menu_item_loop_open_element()

menu_item_loop_open_element(string $field)

Outputs a Menu Item Markup element opening tag

Parameters

string $field
  • Menu Item Markup settings field

menu_item_loop_close_element()

menu_item_loop_close_element(string $field)

Outputs a Menu Item Markup element closing tag

Parameters

string $field
  • Menu Item Markup settings field

menu_item_loop_class()

menu_item_loop_class(string $class) : string

Returns a Menu Item Markup element's class attribute

Parameters

string $class

Returns

string —

HTML class attribute with leading whitespace