[wp-trac] [WordPress Trac] #30536: Trying to filter show_advanced_plugins doesn't work correctly
WordPress Trac
noreply at wordpress.org
Fri Nov 28 00:14:04 UTC 2014
#30536: Trying to filter show_advanced_plugins doesn't work correctly
--------------------------+-----------------------------
Reporter: jkmassel | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Plugins | Version: 4.0.1
Severity: normal | Resolution: invalid
Keywords: | Focuses: administration
--------------------------+-----------------------------
Changes (by dd32):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
You need to pass the `$priority` and `$number_of_args` parameters:
`add_filter( 'show_advanced_plugins', function($true_or_false, $type){..},
10, 2 );`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30536#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list