-
Hi,
I don’t understand why the “Edit Post” link in the WP Admin Bar is not showing when I’m viewing any kind of Custom Posts or viewing the WooCommerce Shop page.
I’ve try to add the following code in my functions.php file but without succes :
function my_admin_bar_link() {
global $wp_admin_bar;
global $post;
if ( !is_super_admin() || !is_admin_bar_showing() )
return;
if ( is_single() )
$wp_admin_bar->add_menu( array(
‘id’ => ‘edit_fixed’,
‘parent’ => false,
‘title’ => __( ‘Edit This’),
‘href’ => get_edit_post_link($post->id)
) );
}
add_action( ‘wp_before_admin_bar_render’, ‘my_admin_bar_link’ );I look forward to hearing from you,
Regards.
Sorry, this forum is for verified users only. Please Login / Register to continue
or get 6 months support forum access to all forum topics for a reduced price.
-
Support time:
Usually 4-8 hrs / might get up to 48 hrsSupport Us
If you are satisfied with our themes & support you can motivate us even more by supporting us (via Paypal).
Themes Support
- General 42
- Qusq Lite 9
- Qusq Pro 110
- Qusq HTML 12
- Ofis WP 0
- Hedy WP 27
- Wildster WP 41
- Tayp WP 44
- TinyShop WP 27
- Freelo WP 80
- Inverto WP 86
- Kreo WP 102
- Kopy WP 207
- Multicorp WP 194
- NO8 WP 266
- Leepho WP 46
- Boldial WP 1,119
- Minicorp WP 470
- Nalleto WP 152
- Zimney WP 10
- Creolio WP 76
Our Themes