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_link
index specified in the following call to register_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_link
is post.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
]]>Hello,
The generated URL does not add the product and apply the code … it results in “page not found”. Am I doing something wrong? Does this plugin work?
Peter
]]>