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
/** | |
* Plugin Name | |
* | |
* @package PluginPackage | |
* @author Cap Web Solutions|Matt Ryan | |
* @copyright 2017 Matt Ryan | |
* @license GPL-2.0+ | |
* | |
* @wordpress-plugin | |
* Plugin Name: Plugin Name |
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 | |
/** | |
* Fix Gravity Form Tabindex Conflicts | |
* http://gravitywiz.com/fix-gravity-form-tabindex-conflicts/ | |
*/ | |
add_filter( 'gform_tabindex', 'gform_tabindexer', 10, 2 ); | |
function gform_tabindexer( $tab_index, $form = false ) { | |
$starting_index = 1000; // if you need a higher tabindex, update this number | |
if( $form ) | |
add_filter( 'gform_tabindex_' . $form['id'], 'gform_tabindexer' ); |
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 | |
//* Enable Gravity Forms Field Label Visibility - adde to functions.php or core functionality plugin | |
add_filter( 'gform_enable_field_label_visibility_settings', '__return_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
define('ITSEC_DISABLE_INACTIVE_USER_CHECK', true); // turn off iThemes security inactive user notices |
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: WooCommerce Stock Report Exporter | |
* Plugin URI: http://www.capwebsolutions.com | |
* Description: A custom stock report exporter plugin for WooCommerce | |
* Version: 2.0.0 | |
* Author: Cap Web Solutions | Matt Ryan | |
* Author URI: http://www.capwebsolutions.com | |
* License: GPL2 | |
* Forked from https://gist.github.com/greenhornet79/74107d429dbf229a2435 |
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 //<= dont add me in | |
// ref: https://wpbeaches.com/add-featured-image-top-page-genesis/ | |
// Add featured image on single post | |
add_action( 'genesis_entry_header', 'themeprefix_featured_image', 1 ); | |
function themeprefix_featured_image() { | |
$image = genesis_get_image( array( // more options here -> genesis/lib/functions/image.php | |
'format' => 'html', | |
'size' => 'large',// add in your image size large, medium or thumbnail, or use below | |
// 'size' => array(300, 450, true), | |
'context' => '', |
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
function featuredtoRSS($content) { | |
global $post; | |
if ( has_post_thumbnail( $post->ID ) ){ | |
$content = '<div>' . get_the_post_thumbnail( $post->ID, 'medium', array( 'style' => 'margin-bottom: 15px;' ) ) . '</div>' . $content; | |
} | |
return $content; | |
} | |
add_filter('the_excerpt_rss', 'featuredtoRSS'); | |
add_filter('the_content_feed', 'featuredtoRSS'); |
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
/wp-admin/plugins.php?ithemes-sync-force-display=1 |
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
// Disabling gallery features | |
// This new gallery is off by default for custom and 3rd party themes since it's common to disable the WooCommerce gallery | |
// and replace with your own. To enable the gallery, you can declare support like this | |
add_theme_support( 'wc-product-gallery-zoom' ); | |
add_theme_support( 'wc-product-gallery-lightbox' ); | |
add_theme_support( 'wc-product-gallery-slider' ); | |
// You do not have to support all 3; you can pick and choose. | |
// If a feature is not supported, the scripts will not be loaded and the gallery code will not execute on product pages. |
OlderNewer