Images on admin backend not showing up
Images on admin backend not showing up
Images on admin backend not showing up
After much pulling of hair here is the answer should anybody require it: (function($){ $(function() { $(‘#page_template’).change(function() { $(‘#postdivrich’).toggle($(this).val() == ‘page-child.php’ || $(this).val() == ‘default’) ; }).change() ; }) ; })(jQuery) ;
You could proceed like that : add_filter(“login_redirect”, “wpse_113875_login_redirect”, 10, 3); function wpse_113875_login_redirect($redirect_to, $request, $user) { if(is_array($user->roles)) if(in_array(‘administrator’, $user->roles)) return site_url(‘/wp-admin/’); return home_url(); } This will use the WP login system and redirect users according to their role after login. I think this is easier than building your own script in this case. You could easily … Read more
$current_screen if condition for a specific page in admin
I am not sure this is your problem if you are not getting any errors, but make sure you have your jQuery code within document ready wrappers and pass the $ in to make sure you can access it since WordPress runs in no-conflict mode. jQuery(document).ready(function($) { $(“input”).keyup(function(){ $(“input”).css(“background-color”,”pink”); }); }); It would also be … Read more
If you look into /wp-admin/edit-form-advanced.php, you will find the meta box: add_meta_box(‘submitdiv’, __(‘Publish’), ‘post_submit_meta_box’, $post_type, ‘side’, ‘core’); Note the __(‘Publish’) – the function __() leads to translate() where you get the filter ‘gettext’. There are two ways to handle your problem: 1. Address the string in a single specialized function (be sure to match the … Read more
Forcing WordPress Administration onto a separate SSL Host
From your pastebin: if (!function_exists(‘wp_get_current_user’)) { include_once( ABSPATH . ‘wp-admin/includes/pluggable.php’ ); } if ( is_super_admin() ) { add_action( ‘admin_init’, ‘myplugin_register’); add_action( ‘admin_menu’, ‘myplugin_menu’ ); } There is no file at wp-admin/includes/pluggable.php. pluggable.php is at wp-includes/pluggable.php, but I see no reason you should have to intentionally include that file. It load front and back end.
Use phpMyAdmin then. MAKE A BACKUP before you do this! In the table wp_X_options (where X is that site’s ID number), under the option_name column (field) find the active_plugins row. Change the option_value field to: a:0:{} Ref : link
I decided on a different approach. Keep the default permalinks in admin, then add a rewrite to allow /course: add_rewrite_rule(‘^course/([^/]*)/?’, ‘index.php?event=$matches[1]’, ‘top’); // single event Then I can update my theme templates with the course/ urls where needed.