-
AuthorPosts
-
March 18, 2017 at 5:00 pm #762924
Hey there,
first of all, sorry for having and opening so many questions simultaneously.
I want to disable the Standard Editor through Advanced Access Control (AAM) with the current_user_can function in my Child theme’s functions.php so that those users can only use the Avia Layout Architekt.
I’d use following code but I don’t know what to enter there where the “????????” now are.add_action('admin_head', function() { if(current_user_can('not_use_standard-editor')){ ?> <style> ???????? </style> <?php } });
Also I want those users to be able to select between whether the page is password protected or public but they mustn’t be allowed to publish the page, so the pages should always only be a draft. In AAM I have the already given option to uncheck “publish_pages”, so the users may not publish the page nor set the visibility to “passwort protected”.
I would again manage it with current_user_can but again I don’t know how the function to allow setting the visibility is called.Can you help me please with those?
Best regards.
- This topic was modified 7 years, 8 months ago by ping-pong.
March 18, 2017 at 6:30 pm #762946Hey ping-pong,
I’m sorry but this level of customizing with a third-party plugin is beyond what we can support here. Might I suggest trying your question here: https://wordpress.org/support/plugin/advanced-access-managerBest regards,
MikeMarch 18, 2017 at 6:47 pm #762953Hey.
Thank you – I’ll ask the question concerning the publishing function over there.
But for the other one I don’t think it really has something to do with the AAM itself, sorry for my unclear wording.
The thing that I’m missing is that I don’t know how to hide the Standard Editor, meaning what to write into the code where the question marks are. I think it already would be enough to hide the button where one can change between Standard Editor and Avial Layout Architekt.Regards.
- This reply was modified 7 years, 8 months ago by ping-pong.
March 18, 2017 at 9:22 pm #762987March 19, 2017 at 2:44 pm #763201Hi,
I’m not sure if you have understood my question properly…
I try to paraphrase it in another way:
Is there any way to set the Avia Advanced Layout Architekt as default editor so that it shows directly (instead of the standard editor) when one creates a new page?Regards.
March 19, 2017 at 2:52 pm #763203I found a solution for my problem here (always open advanced layout builder). And then added a code snippet to hide the button where you can change between standard editor and alb.
Nevertheless – thanks a lot!- This reply was modified 7 years, 8 months ago by ping-pong.
March 19, 2017 at 4:03 pm #763215 -
AuthorPosts
- The topic ‘Disable Standard Editor and publishing function’ is closed to new replies.