This file contains hidden or 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 | |
/** | |
* WordPress WP_User_Query Comprehensive Reference | |
* Compiled by wpsmith - wpsmith.net | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_User_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/user.php | |
*/ | |
$args = array( |
This file contains hidden or 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: Checkboxes & Ajax | |
//Description: In re to http://wordpress.stackexchange.com/questions/61390/edit-post-meta-with-checkboxes-on-front-end | |
//add our test checkboxes | |
add_filter( 'the_content', 'cba_add_checkboxes'); | |
function cba_add_checkboxes( $c ) { | |
$first = get_post_meta( get_the_ID(), 'first_item_key', true ); | |
$second = get_post_meta( get_the_ID(), 'second_item_key', true ); |
This file contains hidden or 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
.center.navbar .nav, | |
.center.navbar .nav > li { | |
float:none; | |
display:inline-block; | |
*display:inline; /* ie7 fix */ | |
*zoom:1; /* hasLayout ie7 trigger */ | |
vertical-align: top; | |
} | |
.center .navbar-inner { |
This file contains hidden or 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 | |
/** | |
* Template Name: blog | |
* | |
* A custom page template for displaying blog archives. | |
* | |
* @package Hatch Pro | |
* @subpackage Template | |
*/ |
This file contains hidden or 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
@media (max-width: 980px) { | |
.form-horizontal .control-group > label { | |
float: none; | |
width: auto; | |
padding-top: 0; | |
text-align: left; | |
} | |
.form-horizontal .controls { | |
margin-left: 0; | |
} |
This file contains hidden or 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
function protect_whole_site() { | |
if ( !is_user_logged_in() ) { | |
auth_redirect(); | |
} | |
} | |
add_action ('template_redirect', 'protect_whole_site'); |
This file contains hidden or 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
//Whats Up | |
(function(){ | |
var p = PUBNUB | |
, speech = p.$('text-to-speech') | |
, tts = p.$('tts') | |
, tts_tpl = p.attr( tts, 'template' ) | |
, speeches = p.$('speeches_template') | |
, speech_tpl = p.attr( speeches, 'template' ) |
This file contains hidden or 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 | |
function languages_list_custom() { | |
$languages = icl_get_languages('orderby=code'); | |
$languages_count = count($languages); | |
if(!empty($languages) && $languages_count>1){ | |
echo '<div id="lang_sel_list_custom"><ul>'; | |
$i=1; | |
global $sitepress_settings; | |
$show_flags = $sitepress_settings['icl_lso_flags']; |
This file contains hidden or 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 // Create the WP_User_Query object | |
$wp_user_query = new WP_User_Query( array( 'role' => 'subscriber' ) ); | |
// Get the users | |
$users = $wp_user_query->get_results(); | |
// Check for users | |
if (!empty($users)) | |
{ | |
// Loop through each user | |
foreach ($users as $user) | |
{ |