PATH:
var
/
www
/
vhosts
/
sandbox.dos-group.com
/
httpdocs
/
mendrisio
/
wp-content
/
plugins
/
posts-to-posts
/
admin
<?php class P2P_Column_Post extends P2P_Column { function __construct( $directed ) { parent::__construct( $directed ); $screen = get_current_screen(); add_action( "manage_{$screen->post_type}_posts_custom_column", array( $this, 'display_column' ), 10, 2 ); } protected function get_items() { global $wp_query; return $wp_query->posts; } function get_admin_link( $item ) { $args = array( 'connected_type' => $this->ctype->name, 'connected_direction' => $this->ctype->flip_direction()->get_direction(), 'connected_items' => $item->get_id(), 'post_type' => get_current_screen()->post_type ); $admin_link = apply_filters( "p2p_post_admin_column_link", add_query_arg( $args, admin_url( 'edit.php' ) ), $item ); return $admin_link; } function display_column( $column, $item_id ) { echo parent::render_column( $column, $item_id ); } }
[+]
templates
[+]
images
[-] box.css
[open]
[-] dropdown.php
[open]
[-] tools-page.php
[open]
[-] dropdown-post.php
[open]
[-] dropdown-user.php
[open]
[-] column-user.php
[open]
[-] field-title-attachment.php
[open]
[-] field-title-post.php
[open]
[-] mustache.js
[open]
[+]
..
[-] field.php
[open]
[-] factory.php
[open]
[-] field-generic.php
[open]
[-] field-title-user.php
[open]
[-] field-title.php
[open]
[-] column.php
[open]
[-] dropdown-factory.php
[open]
[-] column-factory.php
[open]
[-] box.php
[open]
[-] column-post.php
[open]
[-] box-factory.php
[open]
[-] box.js
[open]
[-] tools.css
[open]
[-] field-order.php
[open]
[-] mustache.php
[open]
[-] field-delete.php
[open]