Skip to content

Instantly share code, notes, and snippets.

@alisspers
Last active December 14, 2015 06:59
Show Gist options
  • Save alisspers/5046748 to your computer and use it in GitHub Desktop.
Save alisspers/5046748 to your computer and use it in GitHub Desktop.
Användning av hooken restrict_manage_users i WordPress 3.5
<?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