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
P2 Check In http://wordpress.org/extend/plugins/p2-check-in/ | |
Markdown for P2 http://wordpress.org/extend/plugins/markdown-for-p2/ | |
P2 Likes http://wordpress.org/extend/plugins/p2-likes/ | |
P2 Resolved Posts http://wordpress.org/extend/plugins/p2-resolved-posts/ | |
Who's Online http://wordpress.org/extend/plugins/wp-whos-online/ | |
Local Time http://wordpress.org/extend/plugins/localtime/ | |
WP-Email-Notificator http://wordpress.org/extend/plugins/wp-email-notificator/ |
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_filter('upload_mimes','add_custom_mime_types'); | |
function add_custom_mime_types($mimes){ | |
return array_merge($mimes,array ( | |
'mp3' => 'audio/mp3' | |
)); | |
} |
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 | |
// Ejemplo complejo. Post Type 'historia', con un campo 'fecha_de_entrega' numérico (YYYYMMDD), y otro campo 'pila'. | |
$args = array( | |
'post_type' => 'historia', | |
'meta_key' => 'fecha_de_entrega', | |
'orderby' => 'meta_value_num', | |
'nopaging' => 'true', | |
'order' => 'ASC', |
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 | |
//** Admin Email Alerts for WordPress | |
// Original @ Josh Lobe - WP Admin Alerts For Profile Updates | |
// http://pastebin.com/XY4bgiZX | |
// WangGuard version @ Rafa Poveda | |
// https://gist.github.com/bi0xid/cd1896f7be881d02398f | |
/* |
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 | |
/** | |
* Datebox +18 xprofile field type. | |
* | |
* @since BuddyPress (2.0.1) | |
* @author bi0xid | |
*/ | |
class BP_XProfile_Field_Type_Datebox18 extends BP_XProfile_Field_Type { |
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
.entry-content { | |
-webkit-hyphens: none; | |
-moz-hyphens: none; | |
-ms-hyphens: none; | |
hyphens: none; | |
} |
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
<html> | |
<head> | |
<title>TITLE</title> | |
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0 maximum-scale=1.0" /> | |
<style type="text/css"> | |
body {width:100%;height:100%;margin:0;overflow:hidden;background-color:#252525;} | |
#iframe {position:absolute;left:0px;top:0px;} | |
</style> | |
</head> | |
<body> |
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_filter( 'get_pages', 'add_my_cpt' ); | |
function add_my_cpt( $pages ) | |
{ | |
$my_cpt_pages = new WP_Query( array( 'post_type' => 'my_cpt' ) ); | |
if ( $my_cpt_pages->post_count > 0 ) | |
{ | |
$pages = array_merge( $pages, $my_cpt_pages->posts ); | |
} |
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 | |
* The WordPress Query class. | |
* @link http://codex.wordpress.org/Function_Reference/WP_Query | |
* | |
*/ | |
$args = array( | |
//Post & Page Parameters | |
'p' => 1, | |
'name' => 'hello-world', |
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_filter('upload_mimes', 'custom_upload_mimes'); | |
function custom_upload_mimes ( $existing_mimes = array() ) { | |
// add your extension to the array | |
$existing_mimes['patch'] = 'text/plain'; | |
$existing_mimes['diff'] = 'text/plain'; | |
$existing_mimes['po'] = 'text/plain'; | |
$existing_mimes['conf'] = 'text/plain'; | |
$existing_mimes['mo'] = 'text/plain'; | |
$existing_mimes['rtf'] = 'text/rtf'; |
OlderNewer