sitepress, (int) $post_id ) ); } /** * Link to the front end, link text is given by the anchor * * @param int $post_id * @param string $anchor * * @return string */ public function view_link_anchor( $post_id, $anchor ) { return (string) ( new WPML_TM_Post_View_Link_Anchor( $this->sitepress, (int) $post_id, $anchor ) ); } /** * Link to the backend, link text is given by the anchor * * @param int $post_id * @param string $anchor * * @return string */ public function edit_link_anchor( $post_id, $anchor ) { return (string) ( new WPML_TM_Post_Edit_Link_Anchor( $this->sitepress, (int) $post_id, $anchor ) ); } }