Support » Plugin: ACF Front End Editor » Limit ACF Front End Editor editable content?

  • Great plugin, thanks a lot!

    One question though: is there a (simplish) way to limit what kind of content is editable?
    E.G. I’d like to set page title and navigation off-limits to what ACF FEE, or rather the client, can change.

    BTW: the FEE code is somehow doubled in my navigation:
    <d contenteditable data-postid="53" data-name="wp_hd_title" data-key="wp_core"><d contenteditable data-postid="11" data-name="wp_hd_title" data-key="wp_core">Name of Page</d></d>

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author horiondigital

    (@horiondigital)

    Hi,

    I am planning to find some time for updating this plugin soon, will definitely keep this suggestion in mind for next release.

    +1 ! I need that option 😉
    But it seems that when you use :
    strip_tags(get_field('MyFieldThatShouldBeNotEditableInFrontEnd'))
    it works

    • This reply was modified 4 years, 1 month ago by will83.
    studioosiris

    (@studioosiris)

    Hi,
    can You limit editing for current Author user only?

    You can add this plugin:
    https://wordpress.org/plugins/manageview-your-posts-only/

    or if you just want to limit everyone to their own post EXCEPT Admins and Editors, add this code to your function.php:

    function posts_for_current_author($query) {
    	global $pagenow;
    
    	if( 'edit.php' != $pagenow || !$query->is_admin )
    	    return $query;
    
    	if( !current_user_can( 'edit_others_posts' ) ) {
    		global $user_ID;
    		$query->set('author', $user_ID );
    	}
    	return $query;
    }
    add_filter('pre_get_posts', 'posts_for_current_author');
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Limit ACF Front End Editor editable content?’ is closed to new replies.