Filter
rpress_fooditem_supports
On this page
Filters the features supported by the fooditem (menu item) post type.
Runs when the 'fooditem' post type arguments are built. The default list is title, editor, thumbnail, excerpt, revisions and author. The result becomes the 'supports' argument of register_post_type().
Parameters#
| Parameter | Type | Description |
|---|---|---|
$supports | array | List of post type feature names. |
Return value#
array. The supported features.
Example#
add_filter( 'rpress_fooditem_supports', 'my_fooditem_supports', 10, 1 );
function my_fooditem_supports( $supports ) {
$supports[] = 'custom-fields';
return $supports;
}
Source#
Applied in:
includes/post-types.php(line 61), inrpress_setup_rpress_post_types()
See also#
Was this page helpful?
