local WAMP admin user has lost privileges

This sounds like a Folder Permissions problems – the MAMP Apache user needs to have read/write privileges on everything under your Sites/wordpress/ folder. This is easy to do from the terminal … my post on Permissions should help can i run wp as root permissions

TinyMCE buttons broken

Solved: It appears chrome had a corrupt cache as I attempted to visit the backend on Firefox and noticed that the issue wasn’t there. I had to delete all Chrome browsing data (cache alone wouldn’t do it).

Calculate and save an average in a meta

You can accomplish this via the save_post action: add_action( ‘save_post’, ‘wpa78558_save_average_meta’, 100 ); function wpa78558_save_average_meta( $post_id ) { if ( !wp_is_post_revision( $post_id ) ) { $graphics = get_field(‘graphics’, $post_id); $gameplay = get_field(‘game-play’, $post_id); $life = get_field(‘life’, $post_id); $sound = get_field(‘sound’, $post_id); $overall = $graphics + $gameplay + $life + $sound; $overall = $overall / 4; … Read more

Custom Div with links on Admin Bar

I think you need to use “global $current_user;” in your function to get the details of $current_user and global $wp_admin_bar; for admin bar. This is how I managed to get the role of the current user and change the URL from admin depending on role (It doesn’t solve your issue, but maybe you find it … Read more

Reference external file as a function

You can’t. Create a function that loads that file: function load_admin_page_file() { require ‘admin-members.php’; } Then use that function name as callback argument. In PHP 5.3 you can use a lambda: add_menu_page( ‘Members’, ‘Members’, ‘manage_options’, ‘members’, function() { require ‘admin-members.php’; } );

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