Skip to content

Disabling the Welcome Modal? #19512

Closed
Closed

Description

@myleshyson

Hey this is just a question, but is there filter to disable the welcome modal? We are testing the plugin update for our multisite instance, and the way it is now that welcome modal is gonna pop up and confuse all 1500 plus of our users once we update the plugin.

Activity

  1. changed the title [-]Hiding the Welcome Modal[/-] [+]Disabling the Welcome Modal?[/+] on Jan 8, 2020
  2. added
    [Feature] NUX
    [Type] Help Request
    on Jan 8, 2020
  3. aduth commented on Jan 8, 2020

    @aduth
    Member

    I have similar need for this in my plugin Disable NUX, which did something like this for disabling the previous incarnation of the new user experience tips.

    It seems the implementation there is no longer valid. Looking at #18981 as a reference for migrating to the new implementation, I might expect something like the following could work:

    wp_add_inline_script( 'wp-edit-post', 'wp.data.select( "core/edit-post" ).isFeatureActive( "welcomeGuide" ) && wp.data.dispatch( "core/edit-post" ).toggleFeature( "welcomeGuide" )' );

    I haven't tested this yet. Running the code directly in my browser, it appears to have the intended effect.

    Let me know if this works for you. I'm going to try it in my plugin as well. I'll close the issue preemptively, but it can be reopened if it continues to be an issue.

    cc @noisysocks

  4. GraemeFulton commented on May 16, 2020

    @GraemeFulton
    registerPlugin('disable-welcome-guide', {
           render: function () {
            //disable welcome guide
            wp.data.select( "core/edit-post" ).isFeatureActive( "welcomeGuide" ) && wp.data.dispatch( "core/edit-post" ).toggleFeature( "welcomeGuide" )
        }
    })
    

    Worked for me! I have it defined inside a registerPlugin included in my theme's JS 👍🏽

  5. pwkip commented on Jul 4, 2021

    @pwkip
    Contributor

    for those who are just looking for a quick plugin to turn off the annoyance: https://wordpress.org/plugins/disable-welcome-messages-and-tips/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] NUX[Type] Help Request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions