New answers tagged

1

I was able to figure out that because Lightsail uses a Bitnami deployment of Wordpress, Bitnami overrides the .htaccess file. Instead you have to update the /opt/bitnami/apache2/conf/httpd.conf file by adding the following content: <IfModule headers_module> <IfVersion >= 2.4.7 > Header always setifempty X-Frame-Options ALLOW-FROM ...


0

In your case, I think you should use this code in htaccess file to allow Iframe can load with the same origin: X-Frame-Options: SAMEORIGIN For more information you can view on this URL: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options Hope can help you finsihed this problem.


1

Yes, lots of themes and plugins make use of the wp-admin/admin-ajax.php file, and some use wp-admin/admin-post.php. But beyond that there's little to no reason to access wp-admin. Perhaps a search engine trying to determine if I'm running wordpress? Search engines don't care so much if you are or aren't using WordPress, you would be able to tell via the ...


0

Am I using this hook incorrectly No, you're not. is there another way to get the ID? Yes, try this: function add_menu_field( $item_id, $item, $depth, $args, $id ) { $id2 = 0; if ( ! $id && isset( $_GET['menu'] ) && $_GET['menu'] ) { $id2 = absint( $_GET['menu'] ); } elseif ( ! $id && ! isset( $_GET['menu'] )...


0

It looks like the category name. Really, I don't understand what you mean? For Vietnamese: Hỏi trên này để có câu trả lời là lâu lắm. Tham gia nhóm WordPress Việt Nam mà hỏi, có khi còn nhanh có đáp án hơn ở trên này. Link group: WordPress Việt Nam


0

Well that didn't take long to figure out.. I've dealt with this before, but could never figure it out. Obfuscated code. Impulsively I deleted the directory, but they'll be back. If you see these weird random PHP files, your site needs to be scrubbed and relaunched from backups. Preferably XML data files with no code. Reload the entire site from sources.


1

Use admin_head action function admin_css() { ?> <style> //css Here </style> <?php } add_action('admin_head','admin_css');


0

You can't add button next to the "Add new" without injecting it with javascript. The closest hook is edit_form_top to add your button below the title line like this: In my sample I've added a button to my custom post type "Event": add_action('edit_form_top', 'add_custom_button'); function add_custom_button($id){ if ($post->...


0

With help of following code you can make a custom user role access the control panel. Following code works on hooks admin_init or init add_action( 'admin_init', 'my_custom_function' ); function my_custom_function() { add_role( 'new_role', 'New Role' ); $role = get_role( 'new_role' ); $role->add_cap( 'edit_posts' ); $role->add_cap( '...


0

define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', '**https://hotgossips.in**'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); define( 'DISALLOW_FILE_EDIT', false ); Just put your full address in website url whether it's from www or https or https://www After ...


0

Perhaps the siteurl or home value got modified when you tried to modify the site URL in WP admin? If so, it might make the front-end and the WP admin inaccessible because it is looking for WordPress in a directory in which it doesn't exist. Fixing it in the database If you have access to the MySQL database, go to the wp_options table and set the siteurl and ...


0

I myself delete the wp-login.php file, and upload it per ftp before i want to log in, and delete it again afterwards till next time But i would otherwise say Wordfence Plugin will help a lot to block human hacker attempts. Use a very long and complex username for the admin account (hackers and bots don't assume humans to use long usernames, only passwords), ...


Top 50 recent answers are included