Skip to content

Instantly share code, notes, and snippets.


Victor M. Font Jr. vfontjr

View GitHub Profile
View final_working_code.php
add_filter('frm_where_filter', 'custom_view_where_clause', 10, 2);
function custom_view_where_clause( $where, $args ) {
/* we'll use $view_id and field id to drive the switch statement below
* why a switch statement? switch statements provide better performance than ifs
$view_id = $args['display']->ID;
$field_id = $args['where_opt'];
View final-jquery.js
jQuery(document).ready(function($) {
"use strict";
$( function() {
// activate the tooltip function
$( document ).tooltip({
position: {
my: "center bottom-20",
at: "center top",
View action-detail-page-return-link-source.html
View cpt_page_template.php
* Template Name: Lead Like Jesus Devotionals
* Selectable from a dropdown menu on the edit page screen.
<?php get_header(); ?>
View add_filter.php
add_filter( 'frm_include_credit_card', '__return_true' );
View robots_mod.php
//* Append directives to the virtual robots.txt
//* Siteground adds crawl-delay: 10 to robots.txt. Don't use physical robots.txt on SiteGround
add_filter( 'robots_txt', 'robots_mod', 10, 2 );
function robots_mod( $output, $public ) {
$output .= "Sitemap:";
return $output;
View background-attachment.css
/* apply to any element with 'background-attachment: fixed' kicks in GPU acceleration */
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
transform: translate3d(0,0,0);
-webkit-transform: translate3d(0,0,0);
View xdebug.ini
xdebug.remote_connect_back = 1
xdebug.var_display_max_data = 2048
xdebug.var_display_max_depth = 128
View css1.css
.entry-content ol,
.entry-content ul {
margin-left: 40px;
margin-left: 4rem;
You can’t perform that action at this time.