View FitWP.xml
<?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" /> |
View fix-thumbnail.php
<?php | |
/** | |
* Usage: upload to WP folder | |
* Run it! | |
*/ | |
echo 'Working... '; | |
require_once( 'wp-load.php' ); |
View admin-body-class.php
<?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+ | |
*/ |
View add-data.php
<?php | |
$data = array( | |
array( | |
'year' => 2013, | |
'title' => 'Test', | |
'wins' => 1, | |
'podiums' => 2, | |
'poles' => 3, | |
'description' => 'test description', | |
), |
View register-meta-box.php
<?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( |
View acf-gravity-forms-v5.php
<?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, |
View register.php
<?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', |
View nested1.php
<?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( |
View remove-resources.php
<?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 : [ ]; | |
} ); |
View include-extension.php
<?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