Home Forums WC Vendors Pro Support Filter for Custom Tab not working

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #61273
    Sunil
    Participant

    Hi,
    I am trying to add custom tab in pro dashboard using below code in functions.php, but no success. Can you please help me out.

    function new_dashboard_page( $dashboard_pages ){
    $dashboard_pages[ ‘woocommerce_offer’ ] = array(
    ‘slug’ => ‘woocommerce_offer’,
    ‘label’ => __(‘Manage Offers’, ‘offers-for-woocommerce-wc-vendors’ ),
    ‘actions’ => array(
    ‘edit’ => __(‘Edit’, ‘offers-for-woocommerce-wc-vendors’ ),
    ‘delete’ => __(‘Delete’, ‘offers-for-woocommerce-wc-vendors’ )
    )
    );

    return $dashboard_pages;
    }
    add_filter( ‘wcv_pro_dashboard_urls’, ‘new_dashboard_page’);

    #61278
    Anna
    Member

    Hello,
    This code is an example of how you would add a menu item to the pro dashboard menu:
    https://gist.github.com/fervous/b8ae64ce63f2011164b990be3df17d56

    #61396
    Sunil
    Participant

    Hi Anna,
    Thanks for your quick reply. I placed your example code in child-theme/functions.php but still no success.
    add_filter is not triggering at all.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.