soosdani
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Page loadMy plugin: ~/wp-content/plugins/xyz/xyz.php
<?php $foo = // ??? if ( $foo == 'fwd' ) { // https://xyz.com/fwd header ( 'location: https://abc.com/dwf' ); // or wp_redirect (); } else {} ?>
My posts/pages slugs: homepage, blog, contact. No fwd slug.
Questions:
1. The $foo?
2. The ~/wp-content/plugins/xyz/xyz.php file is ok or another file write?Forum: Developing with WordPress
In reply to: Page loadYes, I would like write own plugin.
Forum: Fixing WordPress
In reply to: Subscribers admin dashboardHave you somehow set up the special widgets to be viewable by subscribers?
Yes, I use add_action ( ‘wp_dashboard_setup’, … ) and wp_add_dashboard_widget. The subscribers see my dashboard widget.
The code (~/wp-content/plugins/xyz/xyz.php):
add_filter ( 'login_redirect', 'rdrct' ); function rdrct () { return 'wp-admin'; }
It works, but is it good?
Forum: Fixing WordPress
In reply to: Subscribers admin dashboard@bcworkz and @littlepackage yes, I have special dashboard with own dashboard widgets. My plugin: ~/wp-content/plugins/xyz/xyz.php:
add_filter ( 'login_redirect', 'https://xyz/wp-admin/index.php' );
Not work and the ~/wp-content/plugins/xyz/functions.php:
add_filter ( 'login_redirect', 'https://xyz/wp-admin/index.php' );
Not work too. How to?
Forum: Fixing WordPress
In reply to: MySQL wp_users, wp_usermetaThe first seven users have a username and my two manually user is not username because the wp_users.user_login is empty. If I change this, the password reminder emails are sent. The problem is solved. Thank you very much!