|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Hooking into Post -> Edit ScreenHi 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 ScreenEric,
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 |
|
|
|
|
|
Re: Hooking into Post -> Edit ScreenIf 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 ScreenThanks 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 |
| Free embeddable forum powered by Nabble | Forum Help |