Home › Forums › Feedback › ACF makes a good combo with Live-Edit › Reply To: ACF makes a good combo with Live-Edit
function init()
{
// must be logged in
if( is_user_logged_in() && current_user_can('author') || current_user_can('administrator'))
{
// actions
add_action('admin_head', array($this,'admin_head'));
add_action('admin_menu', array($this,'admin_menu'));
add_action('wp_enqueue_scripts', array($this,'wp_enqueue_scripts'));
add_action('wp_head', array($this,'wp_head'));
add_action('wp_footer', array($this,'wp_footer'));
add_action('wp_ajax_live_edit_update_width', array($this, 'ajax_update_width'));
}
}
I tried this code intending to allow authors and admins to edit. But again, the authors have access to all the posts which are not their own.
So better if you could help me making the plugin work as per the WordPress’s native post access capability. I can also do myself if you guide me through.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.