https://t.me/RX1948
Server : Apache
System : Linux server.lienzindia.com 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User : plutus ( 1007)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/plutus/public_html/wp-content/themes/vrm/inc/integration/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/plutus/public_html/wp-content/themes/vrm/inc/integration/yoast-seo.php
<?php

namespace TotalTheme\Integration;

\defined( 'ABSPATH' ) || exit;

/**
 * Yoast SEO Plugin Integration.
 */
class Yoast_SEO {

	/**
	 * Hook into actions and filters.
	 */
	public static function init() {
		\add_action( 'after_setup_theme', [ self::class, 'add_theme_support' ] );

		if ( \apply_filters( 'wpex_filter_wpseo_metadesc', true ) ) {
			\add_filter( 'wpseo_metadesc', [ self::class, 'metadesc' ] );
		}

		if ( true === \wp_validate_boolean( \get_theme_mod( 'enable_yoast_breadcrumbs', true ) ) ) {
			Yoast_SEO\Breadcrumbs::init();
		}

		Yoast_SEO\Pagination_Fix::init();
		add_action( 'customize_register', 'TotalTheme\Integration\Yoast_SEO\Customizer::register_settings' );
	}

	/**
	 * Register Yoast SEO theme support.
	 */
	public static function add_theme_support(): void {
		\add_theme_support( 'yoast-seo-breadcrumbs' );
	}

	/**
	 * Auto Generate meta description if empty using Total excerpt function.
	 */
	public static function metadesc( $metadesc ) {
		if ( ! $metadesc && \is_singular() ) {
			$post_excerpt = (string) \wpex_get_excerpt( [
				'length'    => (int) \apply_filters( 'wpex_yoast_metadesc_length', 160 ),
				'trim_type' => 'characters',
				'more'      => null,
			] );
			if ( $post_excerpt ) {
				$metadesc = \trim( \wp_strip_all_tags( $post_excerpt ) );
			}
		}
		return $metadesc;
	}

}

https://t.me/RX1948 - 2025