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
// ---- | |
// Sass (v3.3.7) | |
// Compass (v1.0.0.alpha.18) | |
// Flint (v1.2.0) | |
// ---- | |
// This is an extension of the Flint grid system | |
// ------------------------------------------------------------------------------- | |
// it uses custom functions and SassScript that is packaged with Flint. | |
// Yes, this is a little ridiculous... but you gotta admit, it's pretty freaking nifty. |
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: custom woocommerce feed | |
* Description: Custom feed for importing woocommerce products in other stores | |
* Author: Arden de Raaij | |
* | |
* @package WordPress | |
* | |
* | |
*/ |
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 | |
/* = New custom post-type | |
-------------------------------------------------------------- */ | |
add_action( 'init', 'create_post_type' ); | |
function create_post_type() { | |
register_post_type( 'events', | |
array( | |
'labels' => array( | |
'name' => __( 'Events' ), | |
'singular_name' => __( 'Events' ) |
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 hide_admin_bar_from_front_end(){ | |
if (is_blog_admin()) { | |
return true; | |
} | |
return false; | |
} | |
add_filter( 'show_admin_bar', 'hide_admin_bar_from_front_end'); |
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
/** | |
* Flush Permalinks. To flush all the rewrite rules, Uncomment, safe, refresh site & admin and comment out again | |
*/ | |
add_action('admin_init', 'flush_rewrite_rules'); |
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 | |
// get the the role object | |
$role_object = get_role( 'shop_manager' ); | |
// add $cap capability to this role object | |
$role_object->add_cap( 'edit_theme_options' ); |
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 | |
/* | |
* Display posts only from today and in the future: | |
* http://old.support.advancedcustomfields.com/discussion/6000/how-to-sort-posts-by-acf-date-and-display-only-future-posts | |
* by Pasnon | |
*/ | |
$date_args = array( | |
'post_type' => 'events', |
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
// Move Yoast to bottom | |
function yoasttobottom() { | |
return 'low'; | |
} | |
add_filter( 'wpseo_metabox_prio', 'yoasttobottom'); |
NewerOlder