Woocommerce add custom button to backend order table

@mmm thanks for that code, I didnt know this filter yet. Do you know if it is also possible to add a tooltip that way? Anyway, I have a different solution to add a new button to this column, and also want to post it: add_action( ‘woocommerce_admin_order_actions_end’, ‘add_content_to_wcactions_column’ ); function add_content_to_wcactions_column() { // create some … Read more

Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to access this page

I think the issue may be in your call to add_submenu_page(): add_submenu_page(‘wpsc-sales-logs’,… The first parameter needs to be a reference to your Menu Page’s “slug”, i.e. if you use ‘edit.php’ instead you’ll see that you get a menu option under the “Posts” menu page: add_submenu_page(‘edit.php’,’WPEC – Group Pricing’,’Group Pricing’, 7, ‘wp-e-commerce-group-pricing’, ‘price_options’); Here’s what it … Read more

How to allow Unfiltered HTML in a wordpress multisite install

This had me baffled for a while as well. Not exactly a solution for your problem, but this should get you on your way. add_action( ‘admin_init’, ‘my_kses_remove_filters’ ); function my_kses_remove_filters() { $current_user = wp_get_current_user(); if ( my_user_has_role( ‘administrator’, $current_user ) ) kses_remove_filters(); } function my_user_has_role( $role=””, $user = null ) { $user = $user ? … Read more

Can’t echo get_delete_post_link

Is the user logged in and is allowed to delete posts of this post type? There are three checks inside the get_delete_post_link function before anything starts happening: if ( !$post = get_post( $id ) ) return; $post_type_object = get_post_type_object( $post->post_type ); if ( !$post_type_object ) return; if ( !current_user_can( $post_type_object->cap->delete_post, $post->ID ) ) return; I’m … Read more

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