Articles of admin

Accidentally changed website url

Hello i accidentally changed my wordpress url and now cannot access admin. can anyone tell me how to fix this please? i don’t have access to c-panel either. I tried adding this to wp-config.php via ftp define( ‘WP_SITEURL’, ‘http://www.example.org/folder’ ); define( ‘WP_HOME’, ‘http://www.example.org/folder’ ); still does not work

Change home-url in dashboard

I am wondering if I can change the URL of the “Home”-button in the dashboard’s admin-bar. Right now it just redirects to /, but I need it to redirect to /velkommen. Whenever a logged-in user lands on /, they are already redirected to /velkommen, so in a way it’s already working as I want (with […]

Single category's posts list in admin menu

the “authors” in my site should only be allowed to add/edit posts in a single category (i.e.:News). I am preparing the backend for them and I would like to remove the “Posts” menu and show in its place a “News” menu, from which the authors could only list and add/edit the posts in that Category. […]

Return User Meta text as links to post edit inside the user columns

I use this function to get some information to the user columns, function column_company( $defaults ) { $defaults[‘usercolumn-company’] = __(‘Company’, ‘user-column’); $defaults[‘usercolumn-myoffers’] = __(‘Applied Offers’, ‘user-column’); $defaults[‘usercolumn-totaloffers’] = __(‘Total Offers’, ‘user-column’); return $defaults; } function custom_column_company($value, $column_name, $id) { if( $column_name == ‘usercolumn-company’ ) { return get_the_author_meta( ‘company’, $id ); } elseif( $column_name == ‘usercolumn-myoffers’ […]

Home page is redirecting to another page – no obvious reason

I added a page to my site, and suddenly the home page seems to be redirecting to that page (that is, if you go to jesseliberty.com, which should bring you to the home page, you are redirected to jesseliberty.com/newPage (the page I created). To combat this, I’ve added a 301 redirect from jesseliberty.com/foo to jesseliberty.com/2010 […]

Creating custom admin panel pages without making a plugin?

I have some functionality on my site that I’d like the administrators to be able to handle without going directly into the database. I’m thinking that the cleanest way would be to create new pages within WP’s own admin panel. I’ve found lots of documentation on how to create menu pages (add_menu_page()), how to create […]

Logout Redirect and also WP-login.php Redirect

I am not very advanced in php. I have this function that prevents wp-login.php access with redirection add_action(‘init’,’custom_login’); function custom_login(){ global $pagenow; if( ‘wp-login.php’ == $pagenow && !is_user_logged_in()) { wp_redirect(‘http://yoursite.com/’); exit(); } } from here -> Disable Or Redirect WP-login.php which is actually redirecting and not allowing access to wp-login.php, which is the first thing […]

how to show admin notice in custom menu page after submitting the form?

Here is my code to save data: function save_new_exam(){ extract($_POST); global $wpdb; $wpdb->insert( ‘wp_absb_exam_setting’, array( ‘name’ => $name, ‘time’ => $time, ‘status’ => 1, ‘user_id’ => get_current_user_id() ), array( ‘%s’, ‘%s’, ‘%d’, ‘%d’ ) ); do_action( ‘admin_notices’, ‘new_exam_created’ ); } function new_exam_created(){ ?> <div class=”notice notice-success is-dismissible”> <p> Saved successfully!</p> </div> <?php } Here is […]

Dashboard : remove Safari navigator message

Everytime when i login to wordpress backoffice with safari (only with safari navigator). I got the message on the picture below : I want to Delete definitely this kind of message from the dashboard without update my navigator. How can i do it? Thanks.

getting notifications about updates only in the “core” page

I run a few WP sites and keep track of updates on a daily basis. Normally, I go into the Plugins page and check if there are updates to the installed plugins accordingly. Lately, I’ve found out that even though this page doesn’t show new updates, when I go into the “/wp-admin/update-core.php” page, suddenly there […]