PATH:
home
/
letacommog
/
www
/
wp-content
/
plugins
/
popup-maker
/
includes
<?php // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } function popmake_optin_ajax_call() { // Check our nonce and make sure it's correct. check_ajax_referer( POPMAKE_NONCE, POPMAKE_NONCE ); if ( isset( $_REQUEST['optin_dismiss'] ) ) { $optin = $_REQUEST['optin_name']; $type = $_REQUEST['optin_type']; if ( $type == 'user' ) { update_user_meta( get_current_user_id(), '_popmake_dismiss_optin_' . $optin, true ); } else { update_option( '_popmake_dismiss_optin_' . $optin, true ); } $response['success'] = true; } $response['new_nonce'] = wp_create_nonce( POPMAKE_NONCE ); echo wp_json_encode( $response ); die(); } add_action( 'wp_ajax_popmake_optin', 'popmake_optin_ajax_call' ); add_action( 'wp_ajax_nopriv_popmake_optin', 'popmake_optin_ajax_call' ); function popmake_popup_preview_content_ajax_call() { // Check our nonce and make sure it's correct. check_ajax_referer( POPMAKE_NONCE, POPMAKE_NONCE ); if ( isset( $_REQUEST['popup_content'] ) ) { remove_filter( 'the_popup_content', 'popmake_popup_content_container', 10000 ); $response['content'] = stripslashes( apply_filters( 'the_popup_content', $_REQUEST['popup_content'], $_REQUEST['popup_id'] ) ); $response['success'] = true; } $response['new_nonce'] = wp_create_nonce( POPMAKE_NONCE ); header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" ); header( "Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" ); header( "Cache-Control: no-cache, must-revalidate" ); header( "Pragma: no-cache" ); header( "Content-type: text/x-json" ); echo wp_json_encode( $response ); die(); } add_action( 'wp_ajax_popmake_popup_preview_content', 'popmake_popup_preview_content_ajax_call' ); add_action( 'wp_ajax_nopriv_popmake_popup_preview_content', 'popmake_popup_preview_content_ajax_call' );
[+]
..
[-] pum-deprecated-v1.7.php
[edit]
[-] pum-template-hooks.php
[edit]
[-] input-options.php
[edit]
[-] general-functions.php
[edit]
[-] migrations.php
[edit]
[-] actions.php
[edit]
[+]
libs
[-] popup-functions.php
[edit]
[-] class-popmake-popup-theme-fields.php
[edit]
[-] pum-general-functions.php
[edit]
[-] google-fonts.php
[edit]
[+]
functions
[-] extension-list.json
[edit]
[-] defaults.php
[edit]
[-] pum-deprecated.php
[edit]
[-] theme-functions.php
[edit]
[-] pum-install-functions.php
[edit]
[+]
pum-sdk
[-] class-pum-fields.php
[edit]
[-] extensions-functions.php
[edit]
[-] license-handler.php
[edit]
[-] class-pum.php
[edit]
[+]
importer
[+]
deprecated
[-] plugin-updater.php
[edit]
[-] pum-popup-functions.php
[edit]
[-] ajax-calls.php
[edit]
[+]
admin
[-] install.php
[edit]
[+]
modules
[-] google-fonts.json
[edit]
[-] class-pum-form.php
[edit]
[-] pum-template-functions.php
[edit]
[-] compat.php
[edit]
[+]
batch
[-] class-popmake-popup-fields.php
[edit]
[-] misc-functions.php
[edit]
[-] pum-misc-functions.php
[edit]
[-] css-functions.php
[edit]
[-] class-popmake-fields.php
[edit]
[-] class-popmake-cron.php
[edit]
[-] templates.php
[edit]
[-] pum-deprecated-v1.4.php
[edit]
[-] class-pum-popup-query.php
[edit]
[+]
compatibility
[-] load-popups.php
[edit]
[+]
integrations