Skip to content

Instantly share code, notes, and snippets.

View raulillana's full-sized avatar
🚀
Working from #homefficestudio!

Raul Illana raulillana

🚀
Working from #homefficestudio!
View GitHub Profile
@raulillana
raulillana / email-confirmation.php
Created October 17, 2016 18:40 — forked from elclanrs/email-confirmation.php
Simple e-mail confirmation plugin for WordPress.
<?php
/**
* Plugin Name: Email Confirmation
* Description: Send an email to the user with confirmation code and store form data in database until user confirms.
* Author: Cedric Ruiz
*/
class EmailConfirmation
{
const PREFIX = 'email-confirmation-';
@raulillana
raulillana / functions.php
Last active January 2, 2016 21:59 — forked from davemac/gist:3410174
WordPress remove unwanted dashboard items
<?php
add_action('wp_dashboard_setup', 'prefix_custom_dashboard_widgets');
/** remove unwanted dashboard items */
function prefix_custom_dashboard_widgets()
{
global $wp_meta_boxes;
// QuickPress
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
@raulillana
raulillana / sample.html
Last active September 30, 2015 23:08 — forked from seedprod/gist:1181262
WordPress Farbtastic Color Picker for Multiple Instances
<!-- WordPress Farbtastic Color Picker for Multiple Instances -->
<div style="position:relative;">
<input type="text" name="my-theme-options[color]" id="color" />
<input type="button" class="pickcolor button-secondary" value="<?php _e('Select Color') ?>">
<div class="colorpicker" style="z-index:100; position:absolute; display:none;"></div>
</div>
<script>
// Include this script in your JS related file
$('.pickcolor').click(function(e) {