Delete link doesn’t work
-
Hi,
clicking the delete link for an Active URL doesn’t remove the URL from the list. I believe this is because there’s no
_edit_linkindex specified in the following call toregister_post_type():protected function postTypes() { register_post_type($this->postTypeId, array( 'labels' => array( 'name' => __('Autoload URL', 'icwoo'), ), 'public' => false, 'exclude_from_search' => true, 'hierarchical' => false, 'has_archive' => false, 'show_in_nav_menus' => false, 'supports' => array('title') ) ); }Consequently, in WordPress’s
get_delete_post_link()function, the post ID isn’t added to the link. For wp_post_type ‘post’, for example,_edit_linkispost.php?post=%d. Is this something to do with user capabilities? Do I need to add a user capability to edit posts with type ‘icwoo-url’?Thanks,
Tommy
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Delete link doesn’t work’ is closed to new replies.