PATH:
home
/
letacommog
/
lesfinessaveurs
/
wp-content
/
plugins
/
wordpress-seo
/
admin
/
links
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin\Links\Reindex */ /** * Class WPSEO_Link_Reindex_Post_Endpoint */ class WPSEO_Link_Reindex_Post_Endpoint { const REST_NAMESPACE = 'yoast/v1'; const ENDPOINT_QUERY = 'reindex_posts'; const CAPABILITY_RETRIEVE = 'edit_posts'; /** @var WPSEO_Link_Reindex_Post_Service */ protected $service; /** * WPSEO_Link_Reindex_Post_Endpoint constructor. * * @param WPSEO_Link_Reindex_Post_Service $service The service to handle the requests to the endpoint. */ public function __construct( WPSEO_Link_Reindex_Post_Service $service ) { $this->service = $service; } /** * Register the REST endpoint to WordPress. */ public function register() { register_rest_route( self::REST_NAMESPACE, self::ENDPOINT_QUERY, array( 'methods' => 'GET', 'callback' => array( $this->service, 'reindex', ), 'permission_callback' => array( $this, 'can_retrieve_data', ), ) ); } /** * Determines if the current user is allowed to use this endpoint. * * @return bool */ public function can_retrieve_data() { return current_user_can( self::CAPABILITY_RETRIEVE ); } }
[+]
..
[-] class-link-reindex-dashboard.php
[edit]
[-] class-link-table-accessible.php
[edit]
[-] class-link-notifier.php
[edit]
[-] class-link-factory.php
[edit]
[-] class-link-storage.php
[edit]
[-] class-link-cleanup-transient.php
[edit]
[-] class-link-utils.php
[edit]
[-] class-link-filter.php
[edit]
[-] class-link-content-processor.php
[edit]
[-] class-link-watcher-loader.php
[edit]
[-] class-link-reindex-post-endpoint.php
[edit]
[-] class-link-extractor.php
[edit]
[-] class-link.php
[edit]
[-] class-link-column-count.php
[edit]
[-] class-link-reindex-post-service.php
[edit]
[-] class-link-table-accessible-notifier.php
[edit]
[-] class-link-watcher.php
[edit]
[-] class-link-internal-lookup.php
[edit]
[-] class-link-query.php
[edit]
[-] class-link-installer.php
[edit]
[-] class-link-compatibility-notifier.php
[edit]
[-] class-link-type-classifier.php
[edit]
[-] class-link-columns.php
[edit]