• It`s possible to modify the plugin? When someone successfully verify his age to be redirected to a link I want not on the site page.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @gi7bu7,

    Yes, That’s possible with the age_gate/success/redirect filter, e.g.

    
    add_filter('age_gate/success/redirect', function ($url, $data) {
        return 'https://google.com';
    }, 10, 2);
    

    Thanks
    Phil

    Thread Starter gi7bu7

    (@gi7bu7)

    Great:) the problem is I don`t have coding skills at all. If are easy steps, I can do it just tell me how to implement the code. Thank you!

    Plugin Author Phil

    (@philsbury)

    Hi @gi7bu7,

    Just copy the code and add it to your themes functions.php and change https://google.co.uk to be whatever you want it to be.

    That should be it

    Thanks
    Phil

    Thread Starter gi7bu7

    (@gi7bu7)

    Sorry I`m asking again:) Where I should add the code?

    <?php defined( ‘ABSPATH’ ) OR die( ‘This script cannot be accessed directly.’ );

    /**
    * Include all the needed files
    *
    * Do not modify this or other theme’s files. Use child theme instead!
    */

    if ( ! defined( ‘US_ACTIVATION_THEMENAME’ ) ) {
    define( ‘US_ACTIVATION_THEMENAME’, ‘Impreza’ );
    }

    update_option( ‘us_license_activated’, 1 );
    $us_theme_supports = array(
    ‘plugins’ => array(
    ‘js_composer’ => ‘/framework/plugins-support/js_composer/js_composer.php’,
    ‘Ultimate_VC_Addons’ => ‘/framework/plugins-support/Ultimate_VC_Addons.php’,
    ‘revslider’ => ‘/framework/plugins-support/revslider.php’,
    ‘contact-form-7’ => NULL,
    ‘gravityforms’ => ‘/framework/plugins-support/gravityforms.php’,
    ‘woocommerce’ => ‘/framework/plugins-support/woocommerce/woocommerce.php’,
    ‘wpml’ => ‘/framework/plugins-support/wpml.php’,
    ‘bbpress’ => ‘/framework/plugins-support/bbpress.php’,
    ‘tablepress’ => ‘/framework/plugins-support/tablepress.php’,
    ‘the-events-calendar’ => ‘/framework/plugins-support/the_events_calendar.php’,
    ‘us-header-builder’ => ‘/framework/plugins-support/us_header_builder.php’,
    ‘tiny_mce’ => ‘/framework/plugins-support/tiny_mce.php’,
    ),
    );
    require dirname( __FILE__ ) . ‘/framework/framework.php’;
    include_once( dirname( __FILE__ ) . ‘/framework/network.php’ );

    unset( $us_theme_supports );

    Thread Starter gi7bu7

    (@gi7bu7)

    Or can you login in wordpress and add the code? Than I`ll take a look and do the same for other domains:) Sorry man, I know it is not something hard to do, but as I said, I have no coding skills at all.

    Plugin Author Phil

    (@philsbury)

    Hi @gi7bu7,

    Looking at your functions it looks like any changes would be overwritten with an update, and you say you have multiple sites it makes sense to roll it into a plugin that you can upload to all of them.

    Download the basics here: https://www.dropbox.com/s/mv3kzbnu7o4olcs/ag-redirect.zip?dl=1

    Then all you need to do is change the Google url to what ever you want, upload it to your site and activate the plugin.

    Thanks
    Phil

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hello’ is closed to new replies.