[wp-trac] [WordPress Trac] #60992: Plugin management: AJAX plugin activation consequences

WordPress Trac noreply at wordpress.org
Fri Apr 26 08:54:50 UTC 2024


#60992: Plugin management: AJAX plugin activation consequences
-------------------------------------------------+-------------------------
 Reporter:  jeherve                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.5.3
Component:  Plugins                              |     Version:  6.5
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-         |     Focuses:
  testing-info needs-design-feedback             |
-------------------------------------------------+-------------------------

Comment (by alanfuller):

 @costdev

 Was just thinking about a plugin dev perspective on the admin  notice, is
 there, will there, can there  be an easy, consistent method to overide the
 noticeData.message so specific plugins can override?  e.g. Plugin xyz
 activated,refresh page to visit settings / start onboarding,  so those
 plugin that already have redirects   can just filter so the user is not
 totally unexpectedly thrown into a settings / onboarding


 {{{
 var noticeData = {
         id: 'plugin-activated-successfully',
         className: 'notice notice-success',
         message: sprintf(
             /* translators: %s: The plugin's name. */
             __( 'Your custom %s was activated successfully. Some changes
 may not occur until you refresh the page.' ),
             response.pluginName
         )
     };
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60992#comment:80>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list