Is there a filter to remove or replace the post title’s link in the admin post table view (edit.php)?

I would try something like below. Since current_user_can is called right before displaying the link, we have to hook where capabilities are checked. function wpse200630_has_cap_check( $allcaps, $caps, $args, $user ){ if( function_exists( ‘get_current_screen’ ) ){ $screen = get_current_screen(); if( $screen->base == ‘edit’ && $screen->post_type == ‘my_post_type’){ if ( ‘edit_post’ == $args[0] || ‘delete_post’ == $args[0] … Read more

How much traffic is real traffic?

First of all not all websites get the same amount of traffic as others. One of my websites gets like 100 views per day well the other one may get 10. As per making sure that the stats don’t include bots. I have never personally had a problem with bots affecting my page views. If … Read more

Strange menu behaviour wordpress admin [duplicate]

This is an issue with google chrome, i think the devs are working on a core fix but in the mean time you can add this to your functions.php and it should do the trick: add_action( ‘admin_enqueue_scripts’, ‘chrome_fix’ ); function chrome_fix() { if ( strpos( $_SERVER[ ‘HTTP_USER_AGENT’ ], ‘Chrome’ ) !== false ) { wp_add_inline_style( … Read more

Admin mode breaks with subdomains in latest WP

The issue could be with setting up cookie which may happen if you have different siteurl and homeurl. To give it a try, please edit your wp-config.php file and add these two: define( ‘WP_HOME’, ‘abc.example.com/’); define( ‘WP_SITEURL’, ‘abc.example.com/’); Please replace abc.example.com with your actual subdomain. The thing to make sure is both URLs should match. … Read more

Include script files for admin submenu page

You must have created submenu page using add_submenu_page() hook, so you can use wp_enqueue_script inside callback function of add_submenu_page hook. It will load script only on your submenu page. add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug,’callback’); function callback() { //enqueue script } Or if you want to enqueue script in dashboard(all pages) then you can enqueue … Read more

How do I hide certain taxonomy boxes from users in admin add post page?

The following worked for me in functions.php /** * [remove_meta_boxes remove the resource type standard meta box from the side sortables in the resource post edit screen * @return [type] How do I hide certain taxonomy boxes from users in admin add post page? */ function remove_meta_boxes(){ remove_meta_box( ‘resourcetypesdiv’, ‘resource’,’side’ ); } add_action( ‘admin_menu’, __NAMESPACE__ … Read more

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