403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/wp-seopress-pro/inc/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/wp-seopress-pro/inc/functions//options-edd.php
<?php
defined( 'ABSPATH' ) or die( 'Please don&rsquo;t call the plugin directly. Thanks :)' );

//EDD
//=================================================================================================
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if ( is_plugin_active( 'easy-digital-downloads/easy-digital-downloads.php' )) {
	if(is_singular('download')) {
		function seopress_edd_product_og_price_hook() {
			if (seopress_pro_get_service('OptionPro')->getEddOgPrice() ==='1') {
				if (function_exists('edd_get_download_price') && function_exists('edd_format_amount')) {
					$price = edd_format_amount(edd_get_download_price( get_the_id()));

					$seopress_social_og_price = '<meta property="product:price:amount" content="'.$price.'">';

					echo $seopress_social_og_price."\n";
				}
			}
		}
		add_action( 'wp_head', 'seopress_edd_product_og_price_hook', 1 );

		//OG Currency
		function seopress_edd_product_og_currency_hook() {
			if (seopress_pro_get_service('OptionPro')->getEddOgCurrency() ==='1') {
				if (function_exists('edd_get_currency') && edd_get_currency() !='') {
					$seopress_social_og_currency = '<meta property="product:price:currency" content="'.edd_get_currency().'">';

					echo $seopress_social_og_currency."\n";
				}

			}
		}
		add_action( 'wp_head', 'seopress_edd_product_og_currency_hook', 1 );
	}
	//EDD Meta tag generator
	if (seopress_pro_get_service('OptionPro')->getEddMetaGenerator() ==='1') {
		remove_action('wp_head','edd_version_in_header');
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit