ldc-groupe/content/plugins/wpml-translation-management/classes/menu-elements/class-wpml-tm-post-view-link-title.php

15 lines
392 B
PHP
Raw Normal View History

2020-04-17 16:50:36 +02:00
<?php
/**
* Class WPML_TM_Post_View_Link_Title
*
* Creates post links with the post title as anchor text, pointing at the front-end
* post view
*/
class WPML_TM_Post_View_Link_Title extends WPML_TM_Post_View_Link_Anchor {
public function __construct( &$sitepress, $post_id ) {
parent::__construct( $sitepress, $post_id,
$sitepress->get_wp_api()->get_the_title( $post_id ) );
}
}