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 | |
/** | |
* This function schedules an email by passing -odd paramaters to sendmail. | |
* Those emails will be processed depending on: /etc/sysconfig/sendmail (using 1h) | |
* if sendmail is running all the time. | |
* | |
* @param string $email recipient | |
* @param string $subject - subject | |
* @param string $message - the message |
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 | |
/* | |
Make sure that the function name matches the function name in the parent theme's functions.php file. | |
Also in the parent theme there must be a block e.g. !function_exists('function_name_that_you_want_to_override') | |
that will tell you that it is safe to override that function. | |
*/ | |
function function_name_that_you_want_to_override() { | |
} |
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: Orbisius Sample Code | |
Plugin URI: http://club.orbisius.com/products/ | |
Description: Sample plugin to return JSON | |
Version: 1.0.0 | |
Author: Svetoslav Marinov (Slavi) | |
Author URI: http://orbisius.com | |
License: GPL v2 | |
*/ |
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
add_filter('login_head', create_function('$a', "wp_enqueue_script('jquery');")); | |
add_filter('login_errors', 'login_error_message'); | |
add_action('login_footer', 'login_error_message_hide_empty_error_container'); | |
/** | |
* Removes an error message shown by Limit Login Attempts plugin. | |
* NN attempts remaining. We don't need to give info to the attacker. | |
* Making error null solves half of the problem. There is a wrapper with | |
* a red border which we will remove with : login_error_message_hide_empty_error_container | |
* |
NewerOlder