RaphaelJeger
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Set language programmaticallyOk that may work, thanks!
I just want to set the language programmatically, as I already know which language the user wants from “outside of WP”.Thanks again!
Forum: Fixing WordPress
In reply to: Automatically switch locale depending on browser settingThanks!
But my question was not about where to get the language-info from but how to SET it in WP 4.1 (since it is removed from wp-config.php).And JUST after writing, I finally saw that there is indeed an optional 2nd parameter.
So if someone is in the same situation (using the code in your plugin) just call it like this:
pmpro_hasMembershipLevel(‘1’,$current_user->id)
Forum: Themes and Templates
In reply to: Remove "admin-bar.css" completelywp_dequeue_style( ‘admin-bar’ ); does not work
edit & solution
but this does:
add_action( 'wp_default_styles' , 'remove_admin_bar' ); function remove_admin_bar( $wp_styles ) { $wp_styles->remove('admin-bar'); }
Forum: Themes and Templates
In reply to: Remove "admin-bar.css" completelyAnyone? Pleeeeeeaaasseee?
To be a bit more specific (and because I saw I’m not the only one with this request), the
<div class="lwa lwa-divs-only">
from my template (which is everything I should change to remain update-compatible) renders just before the<div id="wpadminbar">
no matter where I place it.I can’t even find where the code that renders this is and I don’t get it how I should be able to change that without breaking update compatibility…
Forum: Fixing WordPress
In reply to: 502 on LogoutHi
just in case anyone has the same problem:
add
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;to your nginx.cnf and restart nginx, problem solved.
Best,
Raphael