Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block broskees

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
broskees / don't-break-my-homepage.php
Created Apr 4, 2018
A WordPress mu-plugin to disable visual editing of the homepage and only allow text editing
View don't-break-my-homepage.php
* Don't break my homepage mu-plugin
add_filter( 'user_can_richedit', 'dont_richedit_homepage' );
function dont_richedit_homepage( $can )
global $post;
broskees / acf-missing.php
Created Feb 28, 2018 — forked from freezvd/acf-missing.php
WordPress mu plugins to check if "Advanced Custom Fields Pro" is active.
View acf-missing.php
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if ( !is_plugin_active( 'advanced-custom-fields-pro/acf.php' ) )
$tp_acf_notice_msg = __( 'This website needs "Advanced Custom Fields Pro" to run. Please download and activate it', 'tp-notice-acf' );
* Admin notice
add_action( 'admin_notices', 'tp_notice_missing_acf' );
broskees / caldera_custom_checkbox_markup.php
Created Jan 19, 2018
Custom Caldera Checkbox HTML markup for styling purposes
View caldera_custom_checkbox_markup.php
* Custom checkbox markup to allow for styled checkboxes
* Styling method:
* Must be placed in /caldera/ directory within wordpress theme
<?php echo $wrapper_before; ?>
<?php echo $field_label; ?>
<?php echo $field_before; ?>
You can’t perform that action at this time.