Plugin Author
tnomi
(@tnomi)
Hello.
I have not purchased WMLPS.
So, I cannot confirm operation of OLB in WMLPS.
(Even if it is other themes, I cannot confirm them individually. Sorry.)
If you want to use other conditions which are not “author” and “subscriber”, please search the following parts of the source code of OLB, and try rewriting.
– if (in_array(‘subscriber’, …) …
– if (in_array(‘author’, …) …
These parts will be found in search by the keyword of ‘subscriber’ or ‘author’.
However, I have not tried it. So, even if you try this method, the OLB may not operate correctly.
Is this information helpful to you?
Plugin Author
tnomi
(@tnomi)
Sorry for my typos. It was “WPLMS”.
Thread Starter
sihah
(@sihah)
thanks very much for prompt reply 🙂
I’ll try that and will let you know. I encountered an issue with plugin,when i activate this plugin it show select user dropdown on my all pages, even where plug in is not used… like home page and all sub pages. Screenshot is attached here Click for screenshot
please help. thanks
Thread Starter
sihah
(@sihah)
P.S i have not made any changes in plugin file yet..
Plugin Author
tnomi
(@tnomi)
User selector is displayed when you log in by administrator account.
(Administrator can switch to a member or teacher temporarily.)
The display conditions of selector are as follows.
Case 1:
When the accessed page is a child page of “Members My-Page”.
Case 2:
When the accessed page is a child page of “Scheduler for teacher”.
However, it may be displayed also in an exceptional case by other plug-in and the influence of a theme.
If you don’t use the selector, please add a following code to “functions.php” for your theme.
function remove_pretending_form() {
remove_filter( 'olb_admin_pretending_user', array( 'olbFormAction', 'admin_pretending_user' ) );
}
add_action('init', 'remove_pretending_form' );
“User switching” plug-in may be able to use as a substitute.
https://wordpress.org/plugins/user-switching/