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 | |
/** | |
* 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-'; |
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 | |
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']); | |
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
<!-- 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) { |