Manipulating WCFM Menu Bar

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM Manipulating WCFM Menu Bar

Viewing 3 reply threads
  • Author
    Posts
    • #20241
      Jay
      Guest

      Hi,

      I would like to change some of the menu names (eg. Payments -> Earnings), and delete/hide menu (eg. Payments – hide for staff; Logout – hide/delete for every role) from WCFM menu bar.

      I could not find section for hiding “Payments” in Capability Settings.

      Could you provide child theme functions.php code for this?

      Thank you!

    • #20244
      WCFM Forum
      Member

      Hi Jay,

      Here is code for manipulating over menu items –

      function wcfm_withdrawal_menu_manipulate( $wcfm_menus ) {
      	if( isset( $wcfm_menus['wcfm-payments'] ) ) {
      		$wcfm_menus['wcfm-payments']['label'] = __( 'Earnings', 'wc-frontend-manager' );
      		if( function_exists( 'wcfm_is_staff') ) {
      			if( wcfm_is_staff() ) unset( $wcfm_menus['wcfm-payments'] );
      		}
      	}
      	return $wcfm_menus;
      }
      add_filter( 'wcfm_menus', 'wcfm_withdrawal_menu_manipulate', 100 );

      Now, “Logout” is not part of menu items, have to hide this using CSS, use this –

      #wcfm_menu .wcfm_menu_logout { display: none; }

      Please know is this works for you or not!

      Thank You

    • #20314
      Jay
      Guest

      Thank you for your help. It works!

    • #20328
      Bingal
      Member

      Welcome 🙂

      If you ever get a chance then please add a review for me – https://wordpress.org/support/plugin/wc-frontend-manager/reviews/

      Thank You

Viewing 3 reply threads
  • The topic ‘Manipulating WCFM Menu Bar’ is closed to new replies.