Question

I'm new in wordpress plugins development , I'd like to create a plugin do some special edits on posts after created. I want to add a link (anchor) under the post after created (like in the attached image) to redirect to the new page that I will create ..

Can I do something like this?

Wordpress

Was it helpful?

Solution

You can do it by creating a hook for post_row_actions filter

add_filter( 'post_row_actions', 'wpse8170_row_actions', 10, 2 );
function wpse8170_row_actions( $actions, WP_Post $post ) {
    if ( $post->post_type != 'my-custom-post-type' ) {
        return $actions;
    }

    $actions['wpse8170-pdf'] = 'http://your/url/here';
    return $actions;
}

Read this

http://pippinsplugins.com/add-custom-links-to-user-row-actions/

or read this one

http://www.codeforest.net/add-custom-links-to-row-actions-in-wordpress

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top