This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Menu Item Types — Action

Lýsing

This Menu Item Types Add-on adds the possibility of adding action in your navigation menus.
This plugin extend Menu Item Types.

Use your custom action

/**
 * The executed hook will be prefixed with : mitypes_action_ .
 * To run my_custom_action_name, you need write :
 */

add_action( 'mitypes_action_my_custom_action_name', 'my_callable_function', 10, 2 );

function my_callable_function( $args, $item ){
    echo 'hello world' ;
}

Uppsetning

  1. If you don’t have the Menu Item Types plugin, please install and activate it first.
  2. Install the plugin and activate.
  3. Go to Apparence > Menu
  4. If the metaboxes Menu Item Types is not visible, use screen options

SOS

Is this extension stand-alone?

No, there are two dependencies:

Umsagnir

There are no reviews for this plugin.

Þátttakendur & höfundar

“Menu Item Types — Action” er opinn hugbúnaður. Eftirfarandi aðilar hafa lagt sitt af mörkum við smíði þessarar viðbótar.

Höfundar

Breytingarsaga

1.1

  • added some checks on the slug of the action that will be executed in the renders

1.0

  • Init