Remove Notification Widget from Dashboard

This topic contains 4 replies, has 3 voices, and was last updated by  Fernando 5 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #2687

    Fernando
    Free User
    Post count: 120

    Hi,

    I am using GDV2 on a multisite.
    Installed WPInvoicing only on main site (my requirement).
    I will not be using it on subsites.

    I see the following notification widget on the dashboard.
    QUOTE:
    GeoDirectory Pricing Manager requires either Invoicing (recommended) or WooCommerce to take payments. Please set one here.
    UNQUOTE:

    I need to remove this widget from subsites.
    What would be the function (with add_action to achieve this?

    Thank you.

    #2688

    Guust
    Moderator
    Post count: 29970

    I am guessing you network activated GD plugins. You should only activate them site by site.
    Then you can leave the Pricing Manager de-activated on the sub-sites and that message will not pop up.

    https://wpgeodirectory.com/docs/faqs/how-do-i-use-gd-on-a-multisite-network/

    Thanks

    #2689

    Fernando
    Free User
    Post count: 120

    They are NOT network activated.
    All subsites are activated per site (strictly following all your GDV2 docs).
    Sorry, I forgot to mention this in my first post.

    I might need the Pricing Manager Activated on certain subsites.
    Therefore, the only solution is to write a function to remove it.

    I am familiar with WP function and few GD functions.
    But not for this one (WP Invoicing).

    – Thanks

    #2690

    Patrik
    Moderator
    Post count: 1971

    Hi,

    You should activate invoicing for all sites having GD payment manager as it is required. If you want payment manager but not invoicing on subsites and just want to remove the notice then try adding the following code in the functions.php file of the currently active theme.

    remove_action('admin_notices',array( 'GeoDir_Pricing', 'check_for_cart' ), 10);

    If it doesn’t work then let me know the admin details in private reply to see the GD version and do some troubleshooting.

    Regards,
    Patrik

    #2694

    Fernando
    Free User
    Post count: 120

    @patrik,

    Thank you very much for the info.

    Kind Regards.

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket