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 | |
/** | |
* Provides the css generated by theme.json in WPGraphQL | |
*/ | |
add_action( 'graphql_register_types', function() { | |
$field_config = array( | |
'type' => 'String', | |
'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 | |
namespace heyjones\wp_image_sizes; | |
add_action( 'after_setup_theme', __NAMESPACE__ . '\\after_setup_theme' ); | |
function after_setup_theme() { | |
$sizes = array( | |
'thumbnail' => array( | |
'size_w' => 360, |
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 | |
namespace wp_orderby_termmeta; | |
add_action( 'posts_fields', __NAMESPACE__ . '\\posts_fields', 10, 2 ); | |
add_action( 'posts_orderby', __NAMESPACE__ . '\\posts_orderby', 10, 2 ); | |
// Append the "sort" column to the query... | |
function posts_fields( $fields, $query ) { | |
if( 'art' == $query->query_vars['post_type'] ) { |
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 | |
namespace heyjones\userpass; | |
add_action( 'rest_api_init', __NAMESPACE__ . '\\rest_api_init' ); | |
function rest_api_init() { | |
register_rest_route( | |
'heyjones', |
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 | |
/** | |
* Events Manager REST API | |
* | |
* Add REST API support to the Events Manager plugin for WordPress. | |
* | |
* https://wordpress.org/plugins/events-manager/ | |
*/ | |
namespace events_manager\rest_api; |
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
{% layout none %}<?xml version="1.0" encoding="UTF-8"?> | |
<rss version="2.0" | |
xmlns:atom="http://www.w3.org/2005/Atom" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:content="http://purl.org/rss/1.0/modules/content/" | |
xmlns:media="http://search.yahoo.com/mrss/"> | |
<channel> | |
<atom:link href="{{ shop.url | append: blog.url }}?view=protochimp" rel="self" type="application/rss+xml" /> | |
<title> | |
{{ blog.title | append: ' | ' | append: shop.name | escape }} |
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
@import url('https://fonts.googleapis.com/css?family=Raleway:400,500,700,900'); | |
.site-header{ | |
background: #1d1f22!important; | |
border-bottom: none!important; | |
} | |
.navigation-container{ | |
position: absolute; | |
left: 0; | |
right: 0; | |
width: 100vw; |
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
add_filter( 'template_include', 'template_wrapper' ); | |
function template_wrapper( $template ){ | |
get_header(); | |
include $template; | |
get_footer(); | |
return false; | |
} |
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 | |
namespace yoast_low_pri; | |
add_action( 'plugins_loaded', __NAMESPACE__ . '\\plugins_loaded' ); | |
function plugins_loaded(){ | |
if( defined( 'WPSEO_VERSION' ) ){ | |
add_filter( 'wpseo_metabox_prio', __NAMESPACE__ . '\\wpseo_metabox_prio' ); | |
} |
NewerOlder