PATH:
home
/
letacommog
/
menuiserie-convert
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
repositories
<?php /** * Yoast extension of the Model class. * * @package Yoast\WP\SEO\Repositories */ namespace Yoast\WP\SEO\Repositories; use Yoast\WP\Lib\ORM; use Yoast\WP\Lib\Model; /** * Class SEO_Meta_Repository */ class SEO_Meta_Repository { /** * Starts a query for this repository. * * @return ORM */ public function query() { return Model::of_type( 'SEO_Meta' ); } /** * Finds the SEO meta for given post. * * @param int $post_id The post ID. * * @return bool|Model */ public function find_by_post_id( $post_id ) { return $this->query() ->where( 'object_id', $post_id ) ->find_one(); } }
[+]
..
[-] indexable-hierarchy-repository.php
[edit]
[-] primary-term-repository.php
[edit]
[-] seo-meta-repository.php
[edit]
[-] seo-links-repository.php
[edit]
[-] indexable-repository.php
[edit]