add_action( ‘wp_enqueue_scripts’, function() { if ( ! class_exists( ‘FrmRegGlobalSettings’ ) || ! class_exists( ‘FrmProAppController’ ) ) { return; } $global_settings = new FrmRegGlobalSettings(); $reset_page_id = (int) $global_settings->get_global_page( ‘resetpass_page’ ); if ( ! $reset_page_id || ! is_page( $reset_page_id ) ) {…Continue reading
/** * LexiPress: Backend Retailer URL Injector * Creates dedicated input fields in the WooCommerce Product Data panel. */ if ( ! defined( ‘ABSPATH’ ) ) { exit; } // 1. Inject the fields into the “General” tab of the…Continue reading
function disable_dashboard_access() { $file = basename( $_SERVER[‘PHP_SELF’] ); if ( is_user_logged_in() && is_admin() && ! current_user_can( ‘edit_posts’ ) && $file != ‘admin-ajax.php’ ) { wp_redirect( home_url() ); exit; } } add_action( ‘init’, ‘disable_dashboard_access’ );Continue reading
remove_action( ‘wp_footer’, ‘wpcomsh_footer_rum_js’ ); // remove frontend // remove_action( ‘admin_footer’, ‘wpcomsh_footer_rum_js’ ); // remove backendContinue reading
/** * LexiPress: Dynamic External Retailer Button Injector * Updated: Hooked to load below the description tabs. */ if ( ! defined( ‘ABSPATH’ ) ) { exit; } // Changed hook and priority to place it below the tabs add_action(…Continue reading
add_shortcode(‘ptr_faqs’, function () { if (!function_exists(‘get_field’)) return ”; $faqs = get_field(‘faqs’, ‘option’); if (empty($faqs)) return ”; $out = ‘ ‘; foreach ($faqs as $i => $faq) { $q = isset($faq[‘question’]) ? $faq[‘question’] : ”; $a = isset($faq[‘answer’]) ? $faq[‘answer’] :…Continue reading
/** * Fix registered_at range filter when “Switch to website timezone” is enabled. */ add_filter( ‘wt_iew_user_export_args’, ‘wt_fix_registered_at_timezone_filter’, 20, 2 ); function wt_fix_registered_at_timezone_filter( $args, $form_data ) { $use_site_tz = class_exists( ‘Wt_Import_Export_For_Woo_Common_Helper’ ) && Wt_Import_Export_For_Woo_Common_Helper::get_advanced_settings( ‘default_time_zone’ ); if ( ! $use_site_tz ||…Continue reading
/** * Format exported user_registered in site timezone. */ add_filter( ‘hf_customer_csv_export_data’, ‘wt_format_exported_user_registered’, 10, 2 ); function wt_format_exported_user_registered( $row, $columns ) { if ( empty( $row[‘user_registered’] ) ) { return $row; } $use_site_tz = class_exists( ‘Wt_Import_Export_For_Woo_Common_Helper’ ) && Wt_Import_Export_For_Woo_Common_Helper::get_advanced_settings( ‘default_time_zone’ );…Continue reading
add_post_type_support( ‘page’, ‘excerpt’ );Continue reading