Remove Permalink From Admin Edit Post

I’m running the most up to date version of WordPress which has made changes to how permalinks are displayed and handled. There’s no longer a View Post button. I was able to remove the whole area using the get_sample_permalink_html hook. Just return an empty string: function hide_permalink() { return ”; } add_filter( ‘get_sample_permalink_html’, ‘hide_permalink’ );

Featured image on post edit page not loading over HTTPS

It turned out to be a problem with the uploads directory (not sure what caused it initially). I was able to resolve the issue with the following filter: function fix_ssl( $url ) { if ( is_ssl() ) { if (stripos($url, ‘http://’) === 0) { $url=”https” . substr($url, 4); } } return $url; } function uploadDir($uploads) … Read more

Problem with Settings API: changes are not saved after submit

You need to register the proper settings fields in your PPAdminOptions() and also point the form action to options.php: function PPAdminOptions() { if ( !current_user_can( ‘manage_options’ ) ) { wp_die( __( ‘You do not have sufficient permissions to access this page.’ ) ); } ?> <div class=”wrap”> <h1><?php echo get_admin_page_title(); ?></h1> <form method=”post” action=”options.php”> <?php … Read more

Admin-ajax.php 500 error when Add to menu is clicked in admin

If you have problem with: POST wp-admin/admin-ajax.php 500 in WP define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ ); in wp-config.php max_input_vars = 6000 ; in php.ini and deactivate all plugins and active one by one until you see which plugin is causing problem. (Ps. have the great chance to be the Yoast SEO plugin the problem)

How to replace “Password Protected” text with icon in Admin

Try this (don’t forget to replace icon URL): add_filter( ‘display_post_states’, ‘password_protected_icon’ ); function password_protected_icon( $post_states ) { $text = __(‘Password protected’); $pos = array_search( $text, $post_states); if( false !== $pos ) $post_states[$pos] = ‘<img src=”http://i.stack.imgur.com/aIDa6.png” title=”‘.htmlspecialchars($text).'”/>’; return $post_states; }

How can I merge two authors?

Delete one account. Upon deletion WP will prompt you with a question of whether to delete all posts by said author or attribute them to another user. Simple as that, wanted functionality is provided by the core.