Row actions for custom post types?

When using custom post type you use the post_row_actions filter hook and check the post type to modify it only: add_filter(‘post_row_actions’,’my_action_row’, 10, 2); function my_action_row($actions, $post){ //check for your post type if ($post->post_type ==”feedbacks”){ /*do you stuff here you can unset to remove actions and to add actions ex: $actions[‘in_google’] = ‘<a href=”http://www.google.com/?q=’.get_permalink($post->ID).'”>check if indexed</a>’; … Read more

Custom post type – order field

When declaring your custom post type using the register_post_type function, you have to add ‘page-attributes’ to the support field, like in the following example: register_post_type(‘myposttype’, array( ‘supports’ => array(‘title’, ‘editor’, ‘page-attributes’), ‘hierarchical’ => false )); You’ll need to add any other supported meta boxes as well to the ‘supports’ field, see https://developer.wordpress.org/reference/functions/register_post_type/ for more information … Read more

Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?

Positions for Core Menu Items 2 Dashboard 4 Separator 5 Posts 10 Media 15 Links 20 Pages 25 Comments 59 Separator 60 Appearance 65 Plugins 70 Users 75 Tools 80 Settings 99 Separator Parameter description for “menu position” $position (integer) (optional) The position in the menu order this menu should appear. By default, if this … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)