Timeline for how to add stylesheet to particular plugin only?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 14, 2020 at 19:52 | comment | added | hbit |
@JackJohansson the function name is get_current_screen (not get_the_current_screen)
|
|
Aug 1, 2017 at 5:47 | comment | added | Johansson |
Yes you can do that too, it's the correct way. You can also use get_the_current_screen(); , it's a much more powerful function, that also allow queries such as plugin.php?query=sample .
|
|
Aug 1, 2017 at 5:24 | vote | accept | Prasad Gavande | ||
Aug 1, 2017 at 5:24 | comment | added | Prasad Gavande | Hi Jack, Thanks ! it works for me. But just queries, as it is on page level, we don't have something on plugin level ? because if I want to do it for multiple pages, then I need to add "&&" in if statement like if(( $pagenow == 'my-plugin.php' && $pagenow == 'my-settings.php' ) something like this. | |
Jul 31, 2017 at 7:26 | history | answered | Johansson | CC BY-SA 3.0 |