Helper::get_post_permalink( bool $echo = true )
Parameters
- $echo
-
(Optional)
Default value: true
Return
(bool|false|string|void|\WP_Error)
Source
File: includes/libs/themes/helper.class.php
public static function get_post_permalink( $echo = true ){ $video = self::current_video_post(); if( !$video ){ return; } $pl = get_permalink( $video->get_post()->ID ); if( $echo ){ echo $pl; } return $pl; }