| Server IP : 51.91.236.193 / Your IP : 216.73.216.224 Web Server : Apache System : Linux webm010.cluster128.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : institutah ( 16501) PHP Version : 7.2.34 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/institutah/www/wp-content/plugins/wordpress-seo/src/repositories/ |
Upload File : |
<?php
/**
* Yoast extension of the Model class.
*
* @package Yoast\YoastSEO\ORM\Repositories
*/
namespace Yoast\WP\Free\Repositories;
use Yoast\WP\Free\ORM\ORMWrapper;
use Yoast\WP\Free\ORM\Yoast_Model;
/**
* Class SEO_Meta_Repository
*
* @package Yoast\WP\Free\ORM\Repositories
*/
class SEO_Meta_Repository extends ORMWrapper {
/**
* Returns the instance of this class constructed through the ORM Wrapper.
*
* @return \Yoast\WP\Free\Repositories\SEO_Meta_Repository
*/
public static function get_instance() {
ORMWrapper::$repositories[ Yoast_Model::get_table_name( 'SEO_Meta' ) ] = self::class;
return Yoast_Model::of_type( 'SEO_Meta' );
}
/**
* Finds the SEO meta for given post.
*
* @param int $post_id The post ID.
*
* @return \Yoast\WP\Free\Models\SEO_Meta The SEO meta.
*/
public function find_by_post_id( $post_id ) {
return $this->where( 'object_id', $post_id )
->find_one();
}
}