Skip to content

Instantly share code, notes, and snippets.

View davidallenlewis's full-sized avatar

David Lewis davidallenlewis

  • Halifax, NS. Canada
View GitHub Profile
@jenssogaard
jenssogaard / ACF Gutenberg get block fields
Created February 22, 2019 21:08
Helper class for ACF and Gutenberg. Get blocks fields by passing block_id and post_id.
<?php
namespace JensSogaard;
class BlockHelper
{
/**
* Gets ACF fields for a specific block on a given post
* @author Jens Soegaard <jens@jenssogaard.com>
*/
public function getBlockFromPage(string $block_id, int $post_id)
@BFTrick
BFTrick / pdf.php
Last active August 25, 2020 21:13
A more customized Ninja Forms PDF Form Submissions template
<?php
/**
* PDF Included With Form Submission
*
* @author Patrick Rauland
* @version 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly