| Server IP : 188.114.96.2 / Your IP : 104.23.243.201 Web Server : Apache/2.4.59 (Debian) System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64 User : edlftp ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/nicolasj/www/blog.ecoledelangues.be/wp-content/plugins/wordpress-seo/src/models/ |
Upload File : |
<?php
/**
* Model for the SEO Meta table.
*
* @package Yoast\YoastSEO\Models
*/
namespace Yoast\WP\Free\Models;
use Yoast\WP\Free\Yoast_Model;
/**
* Table definition for the SEO Meta table.
*
* @property int $object_id
* @property int $internal_link_count
* @property int $incoming_link_count
*/
class SEO_Meta extends Yoast_Model {
/**
* Overwrites the default ID column name.
*
* @var string
*/
public static $id_column = 'object_id';
/**
* 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 static function find_by_post_id( $post_id ) {
return Yoast_Model::of_type( 'SEO_Meta' )
->where( 'object_id', $post_id )
->find_one();
}
}