Skip to content

Instantly share code, notes, and snippets.

Paul Gilzow gilzow

Block or report user

Report or block gilzow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gilzow
gilzow / post_grid_filters.php
Created Aug 20, 2019
referenced post_grid_filters code
View post_grid_filters.php
<?php
/*
Element Description: VC Post Grid Filters
*/
// Element Class
class vcpostgridfilters extends WPBakeryShortCode
{
// Element Init
@gilzow
gilzow / blockquote.php
Created Aug 20, 2019
referenced blockquotes code
View blockquote.php
<?php
/*
Element Description: VC Info Box
*/
// Element Class
class vcblockquote extends WPBakeryShortCode {
// Element Init
function __construct() {
@gilzow
gilzow / breadcrumb.php
Created Aug 20, 2019
referenced breadcrumb code vc_templates/breadcrumb.php
View breadcrumb.php
<?php
/*
Element Description: VC Info Box
*/
// Element Class
class vcbreadcrumbs extends WPBakeryShortCode {
// Element Init
function __construct() {
@gilzow
gilzow / custom.php
Created Aug 20, 2019
vc_before_init hook
View custom.php
<?php
add_action('vc_before_init', 'vc_before_init_actions');
function vc_before_init_actions()
{
require_once(get_template_directory() . '/vc_templates/breadcrumb.php');
require_once(get_template_directory() . '/vc_templates/blockquote.php');
require_once(get_template_directory() . '/vc_templates/post_grid_filters.php');
}
View analytics-tracking.twig
{#
*
*
* @package WordPress
* @subpackage
* @category theme
* @category view
* @author Paul Gilzow, Mizzou Creative, University of Missouri
* @copyright 2016 Curators of the University of Missouri
#}
@gilzow
gilzow / put-inside-functions.php
Created Jan 5, 2017
Removes user endpoints from WordPress REST API
View put-inside-functions.php
<?php
/**
* Remove user list endpoint from rest api
*/
add_filter('rest_endpoints', function($aryEndpoints){
if(isset($aryEndpoints['/wp/v2/users'])){
unset($aryEndpoints['/wp/v2/users']);
}
if(isset($aryEndpoints['/wp/v2/users/(?P<id>[\d]+)'])){
unset($aryEndpoints['/wp/v2/users/(?P<id>[\d]+)']);
You can’t perform that action at this time.