Skip to content

Instantly share code, notes, and snippets.

View dnavarrojr's full-sized avatar

Dave Navarro, Jr. dnavarrojr

View GitHub Profile
@dnavarrojr
dnavarrojr / tscpl-cpt.php
Created April 30, 2018 21:52
WordPress Registered Post Type Capabilities
<?php
/*
Plugin Name: TSCPL CPT Test
*/
function tscpl_register_teamrooms_cpt() {
/**
* Post Type: Team Rooms.
*/
@dnavarrojr
dnavarrojr / acf-dave.php
Created April 12, 2018 23:55
ACF action "acf/input/admin_footer" not working with get_field_objects()
<?php
function dave_acf_code_master_footer() {
$id = get_the_ID();
$field = get_field_object( 'code_type', $id );
$field_label = esc_attr( 'acf-' . $field['key'] );
?>
<script type="text/javascript">
jQuery( document ).ready( function() {
function setEditorCodeType() {
var editor = ace.edit( jQuery(".editor")[0] );
@dnavarrojr
dnavarrojr / acf_form_shortcode.php
Last active November 9, 2023 17:46
ACF Form Shortcode Plugin for the Front End
<?php
/*
Plugin Name: ACF Front End Forms
Plugin URI: https://navarrojr.com
Description: Create forms on the front end of the site from ACF field groups.
Version: 0.0.1
Author: Dave Navarro, Jr.
Author URI: https://navarrojr.com
*/