Disable the fields of forms. This does not touch the fields that are disabled at the moment of disabling. This script is executed like an event call.
This depends of jQuery.
Disable the fields of forms. This does not touch the fields that are disabled at the moment of disabling. This script is executed like an event call.
This depends of jQuery.
<?php | |
/** | |
* Envio de emails. | |
* | |
* @param string $to Destinatario del email. | |
* @param string $subject Asunto. | |
* @param string $body Mensaje. | |
* @param string $alt_body (Opcional) Mensaje en texto plano. | |
* @return mixed Devuelve TRUE si todo paso bien o un String con el error si algo fallo. |
Para eliminar un item del menu se usa la funcion remove_menu_page
(Ref: http://codex.wordpress.org/Function_Reference/remove_menu_page)
Eliminar un custom post-type de los usuarios que no son administradores.
function my_remove_menu_items()
{
if(!current_user_can('manage_options')):
git filter-branch --commit-filter ' | |
if [ "$GIT_COMMITTER_NAME" = "<Old Name>" ]; | |
then | |
GIT_COMMITTER_NAME="<New Name>"; | |
GIT_AUTHOR_NAME="<New Name>"; | |
GIT_COMMITTER_EMAIL="<New Email>"; | |
GIT_AUTHOR_EMAIL="<New Email>"; | |
git commit-tree "$@"; | |
else | |
git commit-tree "$@"; |
<?php | |
/** | |
* PHPMailer | |
* Download: https://github.com/Synchro/PHPMailer/archive/master.zip | |
*/ | |
define('PHPMailer_path', dirname(__FILE__) . '/PHPMailer'); | |
/** |
<?php | |
/** | |
* Pasar variables por post. | |
* | |
* @author JoseRobinson.com | |
* @version 201304241106 | |
* @link GitHup: https://gist.github.com/5452853 | |
* @param string $url La URL a la cual se le hará la petición. | |
* @param array $data La data que se quiere enviar. |
<?php | |
function get_dir($dir) | |
{ | |
$files = array(); | |
$exclude = array('.', '..', 'appcache.php', '.git', '.gitignore', 'nbproject', 'TODO', 'README.md', 'cache.manifest'); | |
foreach (scandir($dir) as $item) | |
{ | |
if (in_array($item, $exclude)) continue; |