Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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.
    #762946

    Hey 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-manager

    Best regards,
    Mike

    #762953

    Hey.

    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.
    #762987

    Hi,
    The standard editor is built into WordPress, TinyMCE

    Best regards,
    Mike

    #763201

    Hi,
    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.

    #763203

    I 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.
    #763215

    Hi,
    That’s great news, Thank you for using Enfold.

    Best regards,
    Mike

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Disable Standard Editor and publishing function’ is closed to new replies.