This file contains hidden or 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
## BEGIN Force SSL ## | |
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L] | |
## END Force SSL ## | |
## BEGIN WordPress ## | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / |
This file contains hidden or 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: Envira Gallery - Reload Enviratope on Page Load | |
* Plugin URI: http://enviragallery.com | |
* Version: 1.0 | |
* Author: Erica Franz | |
* Author URI: https://fatpony.me/ | |
* Description: Reload Envira Gallery layouts when page finishes loading. | |
*/ |
This file contains hidden or 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 soliloquy_crop_change_args( $args ) { | |
$args = array( | |
'position' => 'b', // crop position, b = bottom, c = center, t = top, default is center | |
'width' => '1200', // cropped image width | |
'height' => '300', // cropped image height | |
'quality' => 100, // cropped image quality | |
'retina' => true // make allowance for retina (produces cropped images at twice the dimension size set), default is false | |
); | |
This file contains hidden or 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: OptinMonster Unset Images Sizes | |
* Plugin URI: http://optinmonster.com/ | |
* Description: Disable the custom image sizes used in the OptinMonster themes. Optins will use full image size instead. | |
* Version: 1.0.0 | |
* Author: Erica Franz | |
* Author URI: https://fatpony.me/ | |
* License: GPL2 | |
*/ |
This file contains hidden or 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 // Do not include this opening tag. | |
add_filter( 'optin_monster_data', 'tgm_om_disable_tracking' ); | |
function tgm_om_disable_tracking( $data ) { | |
$data['tracked'] = true; | |
return $data; | |
} |
This file contains hidden or 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: Soliloquy - Inject Slides | |
* Plugin URI: http://soliloquywp.com | |
* Version: 1.0 | |
* Author: Tim Carr | |
* Author URI: http://www.n7studios.co.uk | |
* Description: Disable touchswipe on mobile | |
*/ |
This file contains hidden or 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
jQuery(document).ready(function($){ | |
$(document).on('click', '.om-custom-html-form a button', function(e){ | |
// Prepare variables. | |
var $this = $(this), | |
optin = $this.closest('.optin-monster-overlay').attr('id').replace('om-', '').replace('-', '_'); | |
if ( ! window[optin] ) { | |
return; | |
} | |
// Send ajax request to track the optin. |
This file contains hidden or 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
add_filter( 'optin_monster_menu_cap', function( $cap ){ | |
if ( current_user_can('delete_pages') ) { | |
return 'edit_pages'; | |
} | |
}); |
This file contains hidden or 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
add_filter( 'optin_monster_output', 'tgm_om_only_swedish', 100 ); | |
function tgm_om_only_swedish( $optins ) { | |
// Your function to check for Swedish. Change as necessary. | |
if ( ! is_swedish() ) { | |
$optins = array(); | |
} | |
return $optins; | |
This file contains hidden or 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: OptinMonster Query Limit | |
* Description: Increases the default query limit for page-level targeting. | |
* Version: 1.0.0 | |
*/ | |
add_filter( 'optin_monster_post_selection_limit', 'tgm_om_post_selection_limit' ); | |
function tgm_om_post_selection_limit( $limit ) { | |