Last active
December 14, 2015 06:59
-
-
Save alisspers/5046748 to your computer and use it in GitHub Desktop.
Användning av hooken restrict_manage_users i WordPress 3.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Någonstans i din pluginfil… | |
add_action( 'restrict_manage_users', function () | |
{ | |
// Inline-CSS är inte snyggt, men för demonstrationen använder vi det här. | |
// Utan denna CSS-kod placeras vår selectbox fel. | |
?> | |
<select name="my-temp-filter" style="float:none;"> | |
<option>Vårt filterelement</option> | |
</select> | |
<input class="button" type="submit" name="my-filter-submit" value="Filtrera"> | |
<?php | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment