Skip to content

Instantly share code, notes, and snippets.

View apintocr's full-sized avatar

António Pinto apintocr

View GitHub Profile
@luetkemj
luetkemj / wp-query-ref.php
Last active May 25, 2024 10:56
WP: Query $args
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/
@anthonyholmes
anthonyholmes / bootstrap-sass-mixin-cheatsheet.scss
Created October 10, 2014 08:13
Bootstrap Sass Mixin Cheatsheet
// Alerts
@include alert-variant($background, $border, $text-color);
// Background Variant
@include bg-variant($parent, $color);
// Border Radius
@include border-top-radius($radius);
@include border-right-radius($radius);
@include border-bottom-radius($radius);
@apintocr
apintocr / filterContactFormRecipient.php
Last active April 24, 2018 20:10
Contact Form 7 - Conditionally Chance Recipient to Post Meta
<?php
/**
* Contact Form 7 - Conditionally Chance Recipient to Post Meta
*
* This function gets the current post id and grabs the desired meta to use
* it on the submited form data to change the recipient email conditionally.
* You can add some conditional checks to make sure the data is correct.
*
* @author António Pinto <apinto@vanguardly.com>
* @link https://gitlab.com/snippets/1662384