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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
.nav { | |
width: 100%; | |
ul { | |
background: #ddd; | |
li { |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
$green: #063C22; | |
a { | |
color: $green; | |
} |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
@mixin border-radius($radius) { | |
-webkit-border-radius: $radius; | |
-moz-border-radius: $radius; | |
-ms-border-radius: $radius; | |
border-radius: $radius; |
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
register_activation_hook( __FILE__, 'endo_create_custom_table' ); | |
function endo_create_custom_table() { | |
global $wpdb; | |
$table_name = $wpdb->prefix . "custom_table"; | |
$sql = "CREATE TABLE $table_name( | |
id mediumint(9) NOT NULL AUTO_INCREMENT, |
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
[one_third]<img src="http://localhost:8888/dev/wp-content/uploads/2014/09/40-fort-1-300x240.png" alt="40-fort-1" width="300" height="240" class="alignnone size-medium wp-image-1425" /> | |
<h3>40 In the Fort</h3> | |
A 40 mile mountain bike race in Fort Collins, CO.[/one_third] | |
[one_third]<img src="http://localhost:8888/dev/wp-content/uploads/2014/09/rrrr-300x300.jpg" alt="rrrr" width="300" height="300" class="alignnone size-medium wp-image-1428" /> | |
<h3>Red River Roadkill Rally</h3> | |
A 60 mile road bike tour in Ardmore, OK.[/one_third] | |
[one_third_last]<img src="http://localhost:8888/dev/wp-content/uploads/2014/09/denver-century-team-young-life-300x267.jpg" alt="denver-century-team-young-life" width="300" height="267" class="alignnone size-medium wp-image-1426" /> | |
<h3>Denver Century</h3> |
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 | |
function issuem_post_author_archive( &$query ) | |
{ | |
if ( $query->is_author ) | |
$query->set( 'post_type', 'article' ); | |
remove_action( 'pre_get_posts', 'issuem_post_author_archive' ); // run once! | |
} | |
add_action( 'pre_get_posts', 'issuem_post_author_archive' ); |
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
UPDATE wp_options SET option_value = replace(option_value, 'http://devsite.com', 'http://livesite.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://devsite.com','http://livesite.com'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://devsite.com', 'http://livesite.com'); |
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
// remove admin bar from free users | |
add_action('after_setup_theme', 'remove_admin_bar'); | |
function remove_admin_bar() { | |
if (!current_user_can('administrator') && !is_admin()) { | |
show_admin_bar(false); | |
} | |
} | |
// don't allow users to access WordPress admin | |
add_action('admin_init', 'no_mo_dashboard'); |
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("gform_address_types", "us_address", 10, 2); | |
function us_address($address_types, $form_id){ | |
$address_types["us"] = array( | |
"label" => "United States", | |
"country" => "USAB", | |
"zip_label" => "Zip Code", | |
"state_label" => "State", | |
"states" => array( | |
"" => "", | |
"AL" => "Alabama", |
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( 'issue_to_pdf_after_pdf_init', 'my_func_show_watermark', 10 ); | |
function my_func_show_watermark( $mpdf ) { | |
$mpdf->SetWatermarkText('DRAFT'); | |
$mpdf->showWatermarkText = true; | |
} |
OlderNewer