WordPress Admin Login Custom Logo

I personally like to use something like this. This will look for a logo image in your templates /images/ folder or directory, then display it in place of the default WordPress Logo. function my_login_logo() { if(file_exists(TEMPLATEPATH.’/images/logo.png’)) $logo = ‘/images/logo.png’; else if(file_exists(TEMPLATEPATH.’/images/logo.jpg’)) $logo = ‘/images/logo.jpg’; else if(file_exists(TEMPLATEPATH.’/images/logo.gif’)) $logo = ‘/images/logo.gif’; ?> <style type=”text/css”> body.login div#login h1 … Read more

Use ‘get’ form action within a WordPress plugin admin page

Try to use this code, <form action=”http://www.mydomain.com/wp-admin/admin.php” method=”get”> <input type=”hidden” name=”page” value=”my-plugin.php” /> <input type=”text” class=”mydatepicker” name=”start_date” value=””/> <input type=”submit” value=”submit”> </form> This will show the url like this… http://www.mydomain.com/wp-admin/admin.php?page=my-plugin.php&start_date=2014-04-03 Check and let me know your comments, if it works

Why is my plugin version 0.1?

Your version number in your plugin header. leaflet-map.php: <?php /* Plugin Name: Leaflet Map Plugin URI: http://twitter.com/bozdoz/ Description: A plugin for creating a Leaflet JS map with a shortcode. Version: 0.1 Author: Benjamin J DeLong Author URI: http://twitter.com/bozdoz/ License: GPL2 */

How to set a cookie for logged in users to md5($user->ID . “my_secret”)?

Nevermind, I’ve figured it out: function init() { $user = wp_get_current_user(); if (!$user instanceof WP_User) return; $year = time() + 60 * 60 * 24 * 30 * 12; $auth = md5(join(‘_’, array($user->ID, “my secret”))); setcookie(‘visitor_id’, $user->ID, $year, “https://wordpress.stackexchange.com/”); setcookie(‘visitor_auth’, $auth, $year, “https://wordpress.stackexchange.com/”); } add_action(‘init’, ‘init’);