%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/cwg/wp-content/plugins/codepress-admin-columns/classes/Column/Post/
Upload File :
Create Path :
Current File : //var/www/cwg/wp-content/plugins/codepress-admin-columns/classes/Column/Post/Path.php

<?php

namespace AC\Column\Post;

use AC\Column;

/**
 * Column displaying path (without URL, e.g. "/my-category/sample-post/") to the front-end location of this item.
 * @since 2.2.3
 */
class Path extends Column {

	public function __construct() {
		$this->set_type( 'column-path' );
		$this->set_label( __( 'Path', 'codepress-admin-columns' ) );
	}

	public function get_value( $post_id ) {
		return $this->get_raw_value( $post_id );
	}

	public function get_raw_value( $post_id ) {
		return str_replace( home_url(), '', get_permalink( $post_id ) );
	}

}

Zerion Mini Shell 1.0