Hide username from users list

There are no direct filters using which we can change the content of Name column. So to get what you want, we should remove ‘Name’ column too and create our own Name column. Therefore, modify_user_columns function will be like this function modify_user_columns($column) { $column = array( “cb” => “<input type=\”checkbox\” />”, “wdm_name” => __(‘Name’), “email” … Read more

Ajax form submission from admin panel

File Upload via Ajax is a bit tricky, but manageable. Add some additional form fields (nonce and ajax_action) to your form in suite_export_import_menu(): function suite_export_import_menu(){ ?> <h2>Suite Report Export/Import </h2> <div id=”export_import_form”> <p id=”custom_ajax_call_process”>Uploading…</p> <p id=”custom_ajax_call_result”></p> <form action=”<?php echo admin_url(‘admin-ajax.php’); ?>” method=”post” enctype=”multipart/form-data” target=”upload_target”> <input type=”hidden” name=”action” value=”export_vacancy”> <input type=”hidden” name=”subaction” value=”imp_vacancy”> <input type=”file” name=”file_source” … Read more

Admin Media grid view images won’t load

Problem is now solved. Thanks to user “blobfolio” here: It sounds like you may have corrupted the image metadata. Have you tried running a plugin like https://wordpress.org/plugins/force-regenerate-thumbnails/ to regenerate the images/meta? Solution: So the solution is to force regenerate all the thumbnails. For example using the plugin mentioned above in the quote.

Disable sticky posts feature

In addition to CSS you could try to unstick each post as soon as it has been made sticky (untested): add_action( ‘post_stuck’, function( $post_id ) { unstick_post( $post_id ); } ); If you’re looking for another approach, than hiding it from the UI with CSS, then consider using custom post types instead of the post … Read more

Adding Visibility Options

I’ve actually done this before with a custom page template rather than with the visibility options … because both logged in and not logged in users ended up going to the same page. Here’s some pseudo-code (i.e. do not actually use the code, but it will give you an idea) $logged_in = is_user_logged_in(); switch($logged_in) { … Read more