ldc-groupe/content/plugins/wpml-translation-management/classes/menu-elements/class-wpml-tm-post-view-link-title.php
Vincent BRIDIER 134507db43 - Backup DEV
- Add DotEnv
- Fix Bato
- Etc..
2020-05-04 15:59:02 +02:00

15 lines
No EOL
392 B
PHP

<?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 ) );
}
}