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
# ----------------------------------------------------------------- | |
# .gitignore for WordPress @CapWebSolutions forked from @salcode | |
# ver 20211109 | |
# | |
# From the root of your project run | |
# curl -O https://gist.github.com/CapWebSolutions/f22e8df8567070412dbcc5284218dcd5/raw/.gitignore | |
# to download this file | |
# | |
# By default all files are ignored. You'll need to whitelist | |
# any mu-plugins, plugins, or themes you want to include in the repo. |
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
/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
/** | |
* 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
<?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'); |
OlderNewer