PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
sitepress-multilingual-cms
/
classes
/
menu-elements
<?php namespace WPML\TM\Menu; use SitePress; use WPML\FP\Cast; use WPML\FP\Fns; use WPML\FP\Lst; use WPML\FP\Maybe; use WPML\FP\Obj; use WPML\FP\Relation; use WPML\LIB\WP\User; use WPML\LIB\WP\Post; use function WPML\FP\pipe; class PostLinkUrl { /** * @param int $postId * * @return string */ public function viewLinkUrl( $postId ) { return Maybe::of( $postId ) ->map( Post::get() ) ->reject( pipe( Obj::prop( 'post_status' ), Lst::includes( Fns::__, [ 'private', 'trash', ] ) ) ) ->map( 'get_permalink' ) ->getOrElse( '' ); } }
[-] class-wpml-lang-domains-box.php
[edit]
[-] class-wpml-tm-post-edit-link-anchor.php
[edit]
[-] PostTypesUI.php
[edit]
[-] class-wpml-tm-post-link-anchor.php
[edit]
[-] class-wpml-taxonomy-translation-screen-data.php
[edit]
[+]
post-edit-screen
[-] class-wpml-tm-post-view-link-title.php
[edit]
[-] class-wpml-custom-types-translation-ui.php
[edit]
[-] class-wpml-tm-post-link.php
[edit]
[-] class-wpml-inactive-content-render.php
[edit]
[-] class-wpml-support-page.php
[edit]
[-] class-wpml-tm-post-edit-custom-field-settings-menu.php
[edit]
[-] class-wpml-user-options-menu.php
[edit]
[-] class-wpml-admin-scripts-setup.php
[edit]
[-] class-wpml-tm-post-view-link-anchor.php
[edit]
[-] class-wpml-tm-post-link-factory.php
[edit]
[-] class-wpml-custom-columns-factory.php
[edit]
[+]
..
[-] class-wpml-translation-tree.php
[edit]
[-] class-wpml-taxonomy-translation-ui.php
[edit]
[-] PostLinkUrl.php
[edit]
[-] class-wpml-custom-columns.php
[edit]
[-] class-wpml-taxonomy-translation.php
[edit]