How Restrict access to admin dashboard by specific static ip?

i’m trying to restrict access to admin dashboard (wp-admin.php) by specific static ip so tried to add .htaccess to the wp-admin and set <FilesMatch “admin\.php$”> Order deny,allow Deny from all Allow from 10.0.0.0/24 </FilesMatch> but is not working and tried to install bulletproof plugin too and change the <IfModule !mod_authz_core.c> <IfModule mod_access_compat.c> Order Allow,Deny Deny … Read more

Multiple Multisite networks on the same domain?

This is a question I can’t find the answer to: Can I run two separate Multisite networks under one domain? Here’s the scenario, to better explain, we have a company website that already uses a WordPress Multisite network to run our country sites, like so: http://www.companysite.com/ http://www.companysite.com/fr/ http://www.companysite.com/se/ http://www.companysite.com/de/ http://www.companysite.com/jp/ http://www.companysite.com/cn/ etc. All of these … Read more

In which directory do I find a specific HTML code of my wordpress page? Some of it seems to be missing after checking all pages [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 2 years ago. Improve this question So I would like to access this part of the HTML and be able to edit it (see image below) However … Read more

Universal problem: first request after ~25 second inactivity always slower (~1 second) than subsequent requests (~1/10sec)

It’s something I noticed ever since I started working with WordPress. It’s a universal issue, in the sense that it doesn’t matter if the WP installation is on my shared hosting account (haven’t tried different providers though), or a local LAMP setup. Brand-new, clean WordPress, with 1 post, 1 page, and defaukt theme – or … Read more

Specific URL has 403 Forbidden status code

I’m debugging a Belgian WP website: slotenmakerbelgie.com. The problem is that I get a forbidden status on a specific URL: slotenmakerbelgie.com/error/ (with and without trailing slash at the end) I really don’t understand what’s going on. I already have checked the following: Temporary deleted .htaccess Temporary deactivated all plugins Checked empty folders Checked and deleted … Read more

Solve cors problem using rest api or ajax

I’m building an app with nuxt using WP as a CMS, so I have this code in my functions.php to allow any origin (temporary) using the rest api and admin-ajax urls function add_cors_http_header(){ // Remove the default filter. remove_filter( ‘rest_pre_serve_request’, ‘rest_send_cors_headers’ ); // Add a Custom filter. add_filter( ‘rest_pre_serve_request’, function( $value ) { header( ‘Access-Control-Allow-Origin: … Read more

Is doing_wp_cron a necessary query string when scheduling cron.php as a cron job?

I have seen various ways to schedule the WordPress cron so that it is triggered by the server. Some will run the php file directory from the crontab and others will use a wget and reference the url. I have noticed some sites suggesting this: wget -q -O – https://domain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1 What is the … Read more