[wp-trac] [WordPress Trac] #62888: Plugin dependencies and "pro" version

WordPress Trac noreply at wordpress.org
Tue Feb 4 13:34:59 UTC 2025


#62888: Plugin dependencies and "pro" version
--------------------------+------------------------------------------
 Reporter:  hupe13        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  HTTP API      |     Version:  6.7.1
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:  administration, performance
--------------------------+------------------------------------------

Comment (by afragen):

 This should work.


 {{{
 add_filter(
         'wp_plugin_dependencies_slug',
         function ($slug) {
                 $slug = 'my-plugin' === $slug ? 'muy-plugin-pro' : $slug;

                 return $slug;
         },
         10,
         1
 );

 }}}

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


More information about the wp-trac mailing list