Wp-admin wrongly redirecting on multisite

Solved it adding an annotation to the ingress: nginx.ingress.kubernetes.io/rewrite-target: / nginx.ingress.kubernetes.io/use-regex: “true” nginx.ingress.kubernetes.io/configuration-snippet: | rewrite ^(/[^/]+)?(/wp-admin)$ $1$2/ break; rewrite ^(/[^/]+)?(/wp-admin/.*)$ $1$2 break; And changing the pathtype to ImplementationSpecific

Can Multisite and Custom Post Types work this way?

You can put something like this in a theme template: <?php switch ( get_current_blog_id() ) { case 9: $category = ‘alignment’; break; case 13: $category = ‘lists’; break; case 14: $category = ‘comments’; break; default: $category = ”; break; } switch_to_blog( BLOG_ID_CURRENT_SITE ); // root site. $category_posts = get_posts( array( ‘category_name’ => $category, ) ); … Read more

Multisite, but wp_kses_allowed_html only for one subsite?

Well, you could do it this way: if ( 101 === get_current_blog_id() ) { add_filter( ‘wp_kses_allowed_html’, allow_iframes_for_editor, 1 ); } (Note: edited to use the get_current_blog_id() ; see https://developer.wordpress.org/reference/functions/get_current_blog_id/ But you should consider Tom’s comment as a warning against doing this.

WPML is blocking WP core update

As I wanted to avoid manually installation I have tried changing the permissions of the folder and files inside /www/domains/digitalscreen.com.0/public/wp-content/languages/wpml, but since my 1st option did not work, I had try the 2nd one: I have finally uninstalled all plugins and manually installed the WP core. For this process I have downloaded the files from … Read more

Change a subsite Admin role of a WordPress Multisite after 24 hours registering

You probably want the built-in cron scheduler. You’ve got two options: either set up a one-off job to downgrade the user 24 hours after registering using wp_schedule_single_event() instead set up a daily job with wp_schedule_event() to check all blogs for users without KYC data and deactivate them if necessary. You should probably change your code … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)