Embed a page within WordPress dashboard?

function facebook_setup_function() { add_meta_box( ‘facebook_widget’, ‘Facebook Moderation Tools’, ‘facebook_widget_function’, ‘dashboard’, ‘normal’, ‘low’ ); } function facebook_widget_function() { include (‘facebook.php’); } add_action( ‘wp_dashboard_setup’, ‘facebook_setup_function’ ); add the above to your functions file and replace the include url with the php file you wish to include into your dashboard. Setting it up ; Use the facebook.php and … Read more

How to get override the WP Admin Syndication feed limit for a custom feed?

This is no normal filter. It’s a filter_ref_array. // Use this to alter your limit: add_filter( ‘post_limits’, create_function( ‘$a’, “return ‘LIMIT $start, 10’;” ) ); EDIT After I saw that this got marked as solution, I want to show you a more “best practice”-approach: function alter_feed_post_limits( $limits ) { return ” LIMIT 0,50″; } add_action( … Read more

Remove the ‘Press This’ Tool

Adding the following action essentially disables the press-this functionality, at least best I can tell: add_action(‘load-press-this.php’, function(){ wp_die(‘”Press This” functionality has been disabled.’); }); The option will still be there on the admin dashboard page, but attempting to use it will fail.

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