1- I create a plugin with my hook :
function wordpress_civicrm_tabs( &$tabs, $contactID ) { // unset the contribition tab, i.e. remove it from the page //unset( $tabs[1] );
// let's add a new "contribution" tab with a different name and put it last
// this is just a demo, in the real world, you would create a url which would
// return an html snippet etc.
$url = CRM_Utils_System::url('civicrm/order',"reset=1&snippet=json&force=1&cid=$contactID" );
$tabs[] = array( 'id' => 'orderTab',
'url' => $url,
'title' => 'Orders',
'weight' => 1 );
}
With this function I added a new tab.
2- I enter in Administer/System Settings/Directory the location of my extension ..wp-content\plugins\ccbc_order_tab\ccbc.order\
3- I use civix to create my extension ccbc.order and in my folder I create a page:order
4.- My order.xml created in xml/Menu/order.xml it shows:
civicrm/order CRM_Order_Page_Order Order access CiviCRM
5- at the moment my page redirects to CRM/Contact/Dashboard.tpl.
Please can you help, what settings I missed?
Thank You
Nilda