Hooking into Post -> Edit Screen

View: New views
5 Messages — Rating Filter:   Alert me  

Hooking into Post -> Edit Screen

by ericholmstrom :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

Is it possible to hook into the admin post -> edit screen and add text under
the post title but above the Edit | Quick Edit | Delete | View? I have
include an image below which illustrates what I'm trying to achieve.

http://img5.imageshack.us/img5/1460/ashec.jpg
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: Hooking into Post -> Edit Screen

by William Canino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Eric,

You cannot change what's displayed for the default columns, but you
can remove the title column and add a custom one of your own.

Add a filter for 'manage_posts_columns' to customize the columns, then
add an action to 'manage_posts_custom_column' to handle the column you
added.

http://wordpress.taragana.net/nav.html?wp-admin/edit.php.source.html

W

2009/10/26 Eric Holmstrom <hypecreations@...>:

> Hi All,
>
> Is it possible to hook into the admin post -> edit screen and add text under
> the post title but above the Edit | Quick Edit | Delete | View? I have
> include an image below which illustrates what I'm trying to achieve.
>
> http://img5.imageshack.us/img5/1460/ashec.jpg
> _______________________________________________
> wp-hackers mailing list
> wp-hackers@...
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Parent Message unknown Re: Hooking into Post -> Edit Screen

by Sharon Chambers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try the action
manage_posts_custom_column

Where you could add your own custom column to the edit posts page.
-Sharon


-----Original Message-----
From: wp-hackers-bounces@... [mailto:wp-hackers-bounces@...] On Behalf Of Eric Holmstrom
Sent: Monday, October 26, 2009 1:32 AM
To: wp-hackers@...
Subject: [wp-hackers] Hooking into Post -> Edit Screen

Hi All,

Is it possible to hook into the admin post -> edit screen and add text under
the post title but above the Edit | Quick Edit | Delete | View? I have
include an image below which illustrates what I'm trying to achieve.

http://img5.imageshack.us/img5/1460/ashec.jpg
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: Hooking into Post -> Edit Screen

by Mohammad Jangda :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you really want it in that position you could add your content to the
$actions array:

<?php

 add_filter('post_row_actions', 'add_below_title', 10, 2);


> function add_below_title( $actions, $post ) {


> $actions = array_merge(array("stuff"=>"Your new content goes here"),
> $actions);


> return $actions;

}

?>


This should add a span with the class "stuff" and the content "Your new
content goes here" to the front to the actions.It'll be hidden though, so
you'll have to add in custom CSS styling to override the WordPress defaults.

On Mon, Oct 26, 2009 at 11:42 AM, Sharon Chambers <sharon@...>wrote:

> Try the action
> manage_posts_custom_column
>
> Where you could add your own custom column to the edit posts page.
> -Sharon
>
>
> -----Original Message-----
> From: wp-hackers-bounces@... [mailto:
> wp-hackers-bounces@...] On Behalf Of Eric Holmstrom
> Sent: Monday, October 26, 2009 1:32 AM
> To: wp-hackers@...
> Subject: [wp-hackers] Hooking into Post -> Edit Screen
>
> Hi All,
>
> Is it possible to hook into the admin post -> edit screen and add text
> under
> the post title but above the Edit | Quick Edit | Delete | View? I have
> include an image below which illustrates what I'm trying to achieve.
>
> http://img5.imageshack.us/img5/1460/ashec.jpg
> _______________________________________________
> wp-hackers mailing list
> wp-hackers@...
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers@...
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: Hooking into Post -> Edit Screen

by ericholmstrom :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks William, Sharon and Mohammad was able to solve my problem

On Tue, Oct 27, 2009 at 7:13 AM, Mohammad Jangda <batmoo@...> wrote:

> If you really want it in that position you could add your content to the
> $actions array:
>
> <?php
>
>  add_filter('post_row_actions', 'add_below_title', 10, 2);
>
>
> > function add_below_title( $actions, $post ) {
>
>
> > $actions = array_merge(array("stuff"=>"Your new content goes here"),
> > $actions);
>
>
> > return $actions;
>
> }
>
> ?>
>
>
> This should add a span with the class "stuff" and the content "Your new
> content goes here" to the front to the actions.It'll be hidden though, so
> you'll have to add in custom CSS styling to override the WordPress
> defaults.
>
> On Mon, Oct 26, 2009 at 11:42 AM, Sharon Chambers <sharon@...
> >wrote:
>
> > Try the action
> > manage_posts_custom_column
> >
> > Where you could add your own custom column to the edit posts page.
> > -Sharon
> >
> >
> > -----Original Message-----
> > From: wp-hackers-bounces@... [mailto:
> > wp-hackers-bounces@...] On Behalf Of Eric Holmstrom
> > Sent: Monday, October 26, 2009 1:32 AM
> > To: wp-hackers@...
> > Subject: [wp-hackers] Hooking into Post -> Edit Screen
> >
> > Hi All,
> >
> > Is it possible to hook into the admin post -> edit screen and add text
> > under
> > the post title but above the Edit | Quick Edit | Delete | View? I have
> > include an image below which illustrates what I'm trying to achieve.
> >
> > http://img5.imageshack.us/img5/1460/ashec.jpg
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers@...
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers@...
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers@...
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers