PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/photostockmall.online/wp-content/plugins/edd-wish-lists/includes/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/photostockmall.online/wp-content/plugins/edd-wish-lists/includes/actions.php |
<?php /** * Actions */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; /** * Process the Add all to cart request * * @since 1.0 * * @param $data */ function edd_wl_process_purchase_all( $data ) { $cart_items = edd_wl_add_all_to_cart( $data['list_id'] ); // redirect straight to checkout with items added wp_redirect( edd_get_checkout_uri() ); edd_die(); } add_action( 'edd_wl_purchase_all', 'edd_wl_process_purchase_all' ); /** * Performs redirect actions * * @since 1.0 * @uses edd_wl_is_private_list() * @uses edd_wl_get_wish_list_uri() * @return void */ function edd_wl_redirects() { // Prevent private lists from being viewed. Also only allows users to access edit slugs with own list ID if ( edd_wl_is_private_list() || // list is set to private ( ! edd_wl_is_users_list( get_query_var( 'wl_edit' ) ) && get_query_var( 'wl_edit' ) ) // not user's list ) { // Don't redirect if we're on single download page. // Extra check to fix compatibility with crowdfunding extension or any other extension that uses an edit query var on the single download page if ( ! is_singular( 'download' ) ) { $redirect = apply_filters( 'edd_wl_private_redirect', edd_wl_get_wish_list_uri() ); wp_redirect( $redirect ); edd_die(); } } // redirect if edit or view page is accessed but edit/view query_var does not exist if ( ( edd_wl_is_page( 'view' ) && ! get_query_var( 'wl_view' ) ) || ( edd_wl_is_page( 'edit' ) && ! get_query_var( 'wl_edit' ) ) ) { wp_redirect( edd_wl_get_wish_list_uri() ); edd_die(); } } add_action( 'template_redirect', 'edd_wl_redirects' );