This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<code_scheme name="FitWP"> | |
<option name="USE_SAME_INDENTS" value="true" /> | |
<option name="IGNORE_SAME_INDENTS_FOR_LANGUAGES" value="true" /> | |
<option name="OTHER_INDENT_OPTIONS"> | |
<value> | |
<option name="INDENT_SIZE" value="4" /> | |
<option name="CONTINUATION_INDENT_SIZE" value="4" /> | |
<option name="TAB_SIZE" value="4" /> | |
<option name="USE_TAB_CHARACTER" value="true" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Usage: upload to WP folder | |
* Run it! | |
*/ | |
echo 'Working... '; | |
require_once( 'wp-load.php' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Admin Body Class Demo | |
Plugin URI: http://www.deluxeblogtips.com/?p=1281 | |
Description: Style Add New / Edit Post page in WordPress using admin body class | |
Version: 0.1 | |
Author: Rilwis | |
Author URI: http://www.deluxeblogtips.com | |
License: GPL2+ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = array( | |
array( | |
'year' => 2013, | |
'title' => 'Test', | |
'wins' => 1, | |
'podiums' => 2, | |
'poles' => 3, | |
'description' => 'test description', | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $meta_boxes; | |
$meta_boxes = array(); | |
$meta_boxes[] = array( | |
'title' => 'Pedigree', | |
'only_on' => array( | |
'id' => array( 1 ), // Show only on "Hello World" post | |
), | |
'fields' => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class acf_field_gravity_forms extends acf_field { | |
function __construct() { | |
$this->name = 'gravity_forms_field'; | |
$this->label = __( 'Gravity Forms', 'acf' ); | |
$this->category = __( "Relational", 'acf'); | |
$this->defaults = array( | |
'multiple' => 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) | |
{ | |
$meta_boxes[] = array( | |
'title' => 'Update custom html field demo', | |
'fields' => [ | |
[ | |
'name' => 'Group', | |
'type' => 'group', | |
'id' => 'group', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'rwmb_meta_boxes', 'nested_groups_demo' ); | |
function nested_groups_demo( $meta_boxes ) | |
{ | |
// Meta Box | |
$meta_boxes[] = array( | |
'title' => __( 'Books', 'rwmb' ), | |
'fields' => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Remove styles of plugin | |
add_filter( 'jetpack_implode_frontend_css', '__return_false' ); | |
add_filter( 'bbp_default_styles', '__return_empty_array' ); | |
// Remove bbPress scripts on non-bbPress pages | |
add_filter( 'bbp_default_scripts', function ( $scripts ) | |
{ | |
return is_bbpress() ? $scripts : [ ]; | |
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once get_template_directory() . '/class-tgm-plugin-activation.php'; // Path to TGM Plugin Activation class. | |
add_action( 'tgmpa_register', 'your_prefix_register_required_plugins' ); | |
function your_prefix_register_required_plugins() { | |
/* | |
* Array of plugin arrays. Required keys are name and slug. | |
* If the source is NOT from the .org repo, then source is also required. | |
*/ | |
$plugins = array( |
OlderNewer