$14 GRAYBYTE WORDPRESS FILE MANAGER $16

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/sozoagrib.com/wp-content/plugins/login-customizer/src/Includes/

HOME
Current File : /home/bravrvjk/sozoagrib.com/wp-content/plugins/login-customizer/src/Includes//Compatibility.php
<?php

/**
 * Plugin Compatibility
 *
 * @package         LoginCustomizer\Includes
 * @author          WPBrigade
 * @copyright       Copyright (c) 2023, WPBrigade
 * @link            https://loginpress.pro/
 * @license         https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 */
namespace LoginCustomizer\Includes;

class Compatibility {

	public function __construct() {
		$this->hooks();
	}

	/**
	 * The compatibility hooks
	 *
	 * @return void
	 */
	public function hooks() {
		if ( function_exists( 'is_plugin_active' ) ) {
			if ( is_plugin_active( 'wordpress-seo/wp-seo.php' ) ) {
				/**
				 * This filters the ID of the page/post which you want to remove from the sitemap XML.
				 *
				 * @since 2.3.2
				 *
				 * @documentation https://developer.yoast.com/features/xml-sitemaps/api/
				 */
				add_filter( 'wpseo_exclude_from_sitemap_by_post_ids', array( $this, 'logincust_wpseo_exclude_from_sitemap' ), 10 );
			} else {
				add_filter( 'wp_sitemaps_posts_query_args', array( $this, 'logincust_exclude_from_sitemap' ), 10, 2 );
			}
		}
	}


	/**
	 * Callback function to exclude Login Customizer page from sitemap.
	 *
	 * @return bool Exclude page/s or post/s.
	 * @since 2.3.2
	 */
	public function logincust_exclude_from_sitemap( $args, $post_type ) {
		if ( 'page' !== $post_type ) {
			return $args;
		}

		$page = get_page_by_path( 'login-customizer' );
		if ( is_object( $page ) ) {

			$args['post__not_in'] = isset( $args['post__not_in'] ) ? $args['post__not_in'] : array();

			$args['post__not_in'][] = $page->ID;
		}
		return $args;
	}

	/**
	 * Callback function to exclude Login Customizer page from sitemap.
	 *
	 * @return bool Exclude page/s or post/s.
	 * @since 2.3.2
	 */
	public function logincust_wpseo_exclude_from_sitemap() {
		$page = get_page_by_path( 'login-customizer' );
		if ( is_object( $page ) ) {
			return array( $page->ID );
		}
	}
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
20 Apr 2025 1.57 AM
bravrvjk / bravrvjk
0755
Ajax.php
2.839 KB
18 Feb 2022 9.30 PM
bravrvjk / bravrvjk
0644
Compatibility.php
1.85 KB
21 Dec 2023 5.40 PM
bravrvjk / bravrvjk
0644
Disband.php
12.076 KB
28 Jan 2021 4.41 PM
bravrvjk / bravrvjk
0644
Help.php
5.402 KB
26 Jan 2023 2.17 PM
bravrvjk / bravrvjk
0644
Notification.php
4.617 KB
20 Feb 2021 3.18 PM
bravrvjk / bravrvjk
0644
Plugin_Meta.php
4.008 KB
19 Apr 2025 1.36 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF