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 | |
| /** | |
| * Create Custom Redirects | |
| * @link https://timersys.com/geotargeting/ | |
| * | |
| * @wordpress-plugin | |
| * Plugin Name: GeoTargeting Pro Custom Redirects | |
| * Plugin URI: https://timersys.com/geotargeting/ | |
| * Description: Geo Targeting custom redirects | |
| * Version: 1.0.0 |
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 | |
| /* | |
| * Redirect user by country or state to a different site | |
| * using Geotargeting WordPress plugin . https://timersys.com/geotargeting | |
| */ | |
| // if some functions such as is_front_page are not working change hook to a later one like template_redirect | |
| add_action( 'init', 'geot_redirect' ); | |
| function geot_redirect() { | |
| if( ! function_exists( 'geot_target') ) |
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 | |
| // disable akismet in all Gravity forms | |
| add_filter( 'gform_akismet_enabled', '__return_false' ); | |
| // disable in just one form - Replace ## with your form ID | |
| add_filter( 'gform_akismet_enabled_##', '__return_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 | |
| /* | |
| * Change or remove "powered by Wordpress Social Invitations" text | |
| * https://wordpress.org/plugins/wp-social-invitations/ | |
| */ | |
| add_filter( wsi/powered_by', 'custom_powered_wsi' ); | |
| function custom_powered_wsi( $text ) { | |
| $text = 'new text'; | |
| return $text; | |
| } |
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 | |
| /** | |
| * Geotargeting Plugin. https://wordpress.org/plugins/geotargeting/ | |
| * Filter IP if you are for example in local host | |
| */ | |
| add_filter( 'geot/user_ip', 'geot_ip'); | |
| function geot_ip( $ip ) { | |
| return '192.192.192.192'; | |
| } |
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( function($){ | |
| var spu_id = 120; // Replace with your own popup ID | |
| /** | |
| * Custom conversions links on Wordpress Popups Plugin | |
| * http://wordpress.org/plugins/popups/ | |
| * On this example your popup id is 120 | |
| * */ | |
| jQuery('#spu-'+spu_id+' a:not(".spu-close-popup")').on('click', function(){ | |
| // Track the popups. Uncomment only if you are using premium version | |
| //window.SPU.track(spu_id, true); |
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 TinyMceOptin() { | |
| SPUP_ADMIN.spu_editor = $("#content_ifr").contents().find('html #tinymce'); | |
| var spu_box_container = false; | |
| // If there is not content add some | |
| var content = SPUP_ADMIN.spu_editor.text(); | |
| if( SPUP_ADMIN.spu_editor.find('.spu-box-container').length) { | |
| spu_box_container = true; | |
| content = SPUP_ADMIN.spu_editor.html(); | |
| } | |
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 | |
| /** | |
| * IF you want to filter popups content to add custom content | |
| * http://wordpress.org/plugins/popups/ | |
| **/ | |
| add_filter('spu/popup/content', 'add_gf_to_spu', 10, 2); | |
| function add_gf_to_spu( $content, $popup){ | |
| // Check if the popup is the correct one | |
| if( $popup->ID == ID_NUMBER_HERE ){ | |
| if ( is_page(THE_PAGE_YOU_WANT) ) { |
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
| /** | |
| * Remove Wordpress social invitations WSI from buddypress tab | |
| */ | |
| add_action('bp_setup_nav' ,'remove_wsi_hooks'); | |
| function remove_wsi_hooks(){ | |
| bp_core_remove_nav_item('wp-social-invitations'); | |
| } |
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
| /** | |
| * Popups plugin - Javascript Events https://wordpress.org/plugins/popups/ | |
| **/ | |
| jQuery(document).on('spu.box_close',function(e,id){ ... }); | |
| jQuery(document).on('spu.box_open',function(e,id){ ... }); | |
| jQuery(document).on('spu.form_submitted',function(e,id){ ... }); |