Create Read Only Admin

Is there an easy way… AFAIK, no, not at all. If using a single site installation, you’d need to carefully disable (not hide, disable) all possible user actions that modify things. And this has to be done screen by screen (Posts, Pages, Comments, Appearance, Plugins, etc). For example, in the All Posts screen (/wp-admin/edit.php): /** … Read more

Reapproval for edits and deletion after post is published

Let us solve this by going with your second option. So you want to restrict users from editing published posts, this can be done by adding this to your theme’s functions.php file (please read the comments that is added): function restrict_editing_old_posts( $allcaps, $cap, $args ) { // Restrict users from editing post based on the … Read more

Redirect after closing Theme Customizer when user does not have permission for theme page

You can try this jQuery script injected via the customize_controls_print_footer_scripts hook: /** * Change the url of the Close link in the /wp-admin/customize.php page * See http://wordpress.stackexchange.com/q/116257 */ function change_close_url_wpse_116257() { $url = get_admin_url(); // Edit this to your needs printf( “<script> jQuery(document).ready( function(){ jQuery(‘#customize-header-actions a.back.button’).attr(‘href’, ‘%s’); }); </script>” , esc_js( $url ) ); } … Read more

can i run wp as root permissions

WordPress and Apache WordPress needs to be able to use Apache. By default Apache runs on Ubunutu as user www-data. And … www-data is also a member of the group www-data So when you try to do a Git Pull then every file will have the wrong permissions as it’s expecting the owner to be … Read more

Remove Posts Quick Edit link for specific user role? WP 3.3

Based on this answer, yours was easy: add_filter(‘post_row_actions’, ‘wpse_49800_qe_download_link’, 10, 2); add_filter(‘page_row_actions’, ‘wpse_49800_qe_download_link’, 10, 2); // for Custom Post Types // add_filter(‘cpt_name_row_actions’, ‘wpse_49800_qe_download_link’, 10, 2); function wpse_49800_qe_download_link($actions, $post) { unset($actions[‘inline hide-if-no-js’],$actions[‘trash’]); return $actions; } Notice that you don’t mention the ‘Trash’, so it’s being removed as well. Plugin of interest Adminimize is able to hide … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)