Removed useless log calls

parent daef1dbe
...@@ -131,7 +131,6 @@ if(!class_exists('SexhackPmsPasswordDataLeak')) { ...@@ -131,7 +131,6 @@ if(!class_exists('SexhackPmsPasswordDataLeak')) {
{ {
public function __construct() public function __construct()
{ {
sexhack_log('SexhackPmsPasswordDataLeak() Instanced');
add_filter( 'pms_recover_password_message', array($this, "change_recover_form_message") ); add_filter( 'pms_recover_password_message', array($this, "change_recover_form_message") );
add_action( 'init', array($this, 'reset_password_form'), 9); add_action( 'init', array($this, 'reset_password_form'), 9);
add_action( 'login_form_rp', array( $this, 'redirect_password_reset' ) ); add_action( 'login_form_rp', array( $this, 'redirect_password_reset' ) );
......
...@@ -34,7 +34,6 @@ if(!class_exists('SexhackAddUnlockLogin')) { ...@@ -34,7 +34,6 @@ if(!class_exists('SexhackAddUnlockLogin')) {
add_action("woocommerce_after_order_notes", array($this, "add_to_checkout")); add_action("woocommerce_after_order_notes", array($this, "add_to_checkout"));
add_filter("pms_register_shortcode_content", array($this, "add_to_register"), 10, 2); add_filter("pms_register_shortcode_content", array($this, "add_to_register"), 10, 2);
add_filter("unlock_authenticate_user", array($this, "fix_unlock_user"), 11, 1); add_filter("unlock_authenticate_user", array($this, "fix_unlock_user"), 11, 1);
sexhack_log('SexhackAddUnlockLogin() Instanced');
} }
public function get_proto(){ public function get_proto(){
......
...@@ -36,7 +36,6 @@ if(!class_exists('SH_VideoPlayer')) { ...@@ -36,7 +36,6 @@ if(!class_exists('SH_VideoPlayer')) {
{ {
case 'hls': case 'hls':
$html = sh_get_template("videoplayer/hls.php", array('vurl' => $vurl, 'posters' => $posters )); $html = sh_get_template("videoplayer/hls.php", array('vurl' => $vurl, 'posters' => $posters ));
sexhack_log($html);
break; break;
case 'xr': case 'xr':
......
...@@ -45,7 +45,6 @@ if(!class_exists('SH_VideoGallery')) { ...@@ -45,7 +45,6 @@ if(!class_exists('SH_VideoGallery')) {
add_filter('archive_template', array($this, 'sexhack_video_template')); add_filter('archive_template', array($this, 'sexhack_video_template'));
add_action('pre_get_posts', array($this, 'fix_video_query'), 1, 1); add_action('pre_get_posts', array($this, 'fix_video_query'), 1, 1);
sexhack_log('SexHackVideoGallery() Instanced');
} }
...@@ -65,7 +64,6 @@ if(!class_exists('SH_VideoGallery')) { ...@@ -65,7 +64,6 @@ if(!class_exists('SH_VideoGallery')) {
if($is_sexhack_video ) { if($is_sexhack_video ) {
set_query_var( 'post_type', 'sexhack_video' ); set_query_var( 'post_type', 'sexhack_video' );
if ( file_exists( plugin_dir_path(__DIR__) . '/templates/'.$template)) { if ( file_exists( plugin_dir_path(__DIR__) . '/templates/'.$template)) {
sexhack_log("NEW TEMPLATE!: ".plugin_dir_path(__DIR__) . '/templates/'.$template);
return plugin_dir_path(__DIR__) . '/templates/'.$template; return plugin_dir_path(__DIR__) . '/templates/'.$template;
} }
} }
...@@ -78,12 +76,10 @@ if(!class_exists('SH_VideoGallery')) { ...@@ -78,12 +76,10 @@ if(!class_exists('SH_VideoGallery')) {
if($query->get('post_type')=='sexhack_video') { if($query->get('post_type')=='sexhack_video') {
$wooprod = $query->get('wooprod', false); $wooprod = $query->get('wooprod', false);
if($wooprod) { if($wooprod) {
sexhack_log($_SERVER['REQUEST_URI']." BEFORE ".print_r($query, true));
$query->query['post_type'] = 'sexhack_video'; $query->query['post_type'] = 'sexhack_video';
$query->set('name', esc_sql($wooprod)); $query->set('name', esc_sql($wooprod));
$query->set('post_type', 'any'); $query->set('post_type', 'any');
//$query->set('post_type', ''); //$query->set('post_type', '');
sexhack_log("AFTER ".print_r($query, true));
} }
} }
} }
......
...@@ -31,7 +31,6 @@ if(!class_exists('SexhackWoocommerceProductVideos')) { ...@@ -31,7 +31,6 @@ if(!class_exists('SexhackWoocommerceProductVideos')) {
{ {
public function __construct() public function __construct()
{ {
sexhack_log('SexhackWoocommerceProductVideos() Instanced');
add_action( 'woocommerce_before_single_product', array($this, 'video_remove_default_woocommerce_image' )); add_action( 'woocommerce_before_single_product', array($this, 'video_remove_default_woocommerce_image' ));
add_filter( 'query_vars', array($this, 'themeslug_query_vars' )); add_filter( 'query_vars', array($this, 'themeslug_query_vars' ));
} }
...@@ -112,7 +111,6 @@ if(!class_exists('WoocommerceAccountRemoveNameSurname')) { ...@@ -112,7 +111,6 @@ if(!class_exists('WoocommerceAccountRemoveNameSurname')) {
{ {
add_filter('woocommerce_save_account_details_required_fields', array($this, 'ts_hide_first_last_name')); add_filter('woocommerce_save_account_details_required_fields', array($this, 'ts_hide_first_last_name'));
add_action( 'woocommerce_edit_account_form_start', array($this, 'add_username_to_edit_account_form')); add_action( 'woocommerce_edit_account_form_start', array($this, 'add_username_to_edit_account_form'));
sexhack_log('WoocommerceAccountRemoveNameSurname() Instanced');
} }
// Add the custom field "username" // Add the custom field "username"
...@@ -148,7 +146,6 @@ if(!class_exists('WoocommerceEmailCheckout')) { ...@@ -148,7 +146,6 @@ if(!class_exists('WoocommerceEmailCheckout')) {
{ {
public function __construct() public function __construct()
{ {
sexhack_log('WoocommerceEmailCheckout() Instanced');
add_filter( 'woocommerce_checkout_fields' , array($this,'simplify_checkout_virtual') ); add_filter( 'woocommerce_checkout_fields' , array($this,'simplify_checkout_virtual') );
add_filter( 'woocommerce_login_redirect', array($this, 'fix_woocommerce_user'), 99, 2); add_filter( 'woocommerce_login_redirect', array($this, 'fix_woocommerce_user'), 99, 2);
...@@ -206,7 +203,6 @@ if(!class_exists('SH_WooCommerce_Registration_Integration')) { ...@@ -206,7 +203,6 @@ if(!class_exists('SH_WooCommerce_Registration_Integration')) {
//$this->addcart = false; //$this->addcart = false;
sexhack_log('SH_WooCommerce_Registration_Integration() Instanced');
// Register new endpoint (URL) for My Account page // Register new endpoint (URL) for My Account page
add_action( 'init', array($this, 'add_subscriptions_endpoint'), 300 ); add_action( 'init', array($this, 'add_subscriptions_endpoint'), 300 );
...@@ -262,12 +258,10 @@ if(!class_exists('SH_WooCommerce_Registration_Integration')) { ...@@ -262,12 +258,10 @@ if(!class_exists('SH_WooCommerce_Registration_Integration')) {
function add_subscriptions_endpoint() function add_subscriptions_endpoint()
{ {
global $wp_rewrite; global $wp_rewrite;
sexhack_log("SUBSCRIPTION ENDPOINT ADDED");
add_rewrite_endpoint( 'subscriptions', EP_ROOT | EP_PAGES ); add_rewrite_endpoint( 'subscriptions', EP_ROOT | EP_PAGES );
$rules = $wp_rewrite->wp_rewrite_rules(); $rules = $wp_rewrite->wp_rewrite_rules();
if(!array_key_exists('(.?.+?)/subscriptions(/(.*))?/?$', $rules)) if(!array_key_exists('(.?.+?)/subscriptions(/(.*))?/?$', $rules))
{ {
sexhack_log("SUBSCRIPTION RULESS NEEDS REWRITE");
update_option('need_rewrite_flush', 1); update_option('need_rewrite_flush', 1);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment