Tagged Questions
1
vote
1answer
23 views
How to use Yoast SEO backend in english even if WPLANG variable is not english?
I added this code to my functions.php file
add_filter('locale', 'wpse27056_setLocale');
function wpse27056_setLocale($locale) {
if ( is_admin() ) {
return 'en_US';
}
return ...
-1
votes
1answer
457 views
plugin: 'init' hook, check if we're not in admin
I've tried this inside of my plugin ('init' hook) but it doesn't work:
if(is_front_page() || is_singular() || is_archive()) { ... }
How could I check it using init hook?
Thanks.
2
votes
1answer
170 views
How could I execute my plugin just in frontend (not in backend)
I don't need my plugin running through wp-admin, including wp-login. How could I prevent it? is_admin works fine but i don't know how to ignore everything related to wp-admin (like wp-login.php).
...
1
vote
1answer
135 views
Show an image in my header.php
I want to let my customer choose any image (in my backend) and then it will be displayed in my header.php. i've found Image Widget, but it just show images in the sidebar. I want something like:
...
9
votes
7answers
11k views
Front-end Register Form
I'm looking for an easy way to place the user registration form on the front-end of a WordPress site. I've already used wp_login_form() to place the login form on the front end, but now I need to do ...