how to change default icon of custom plugin?

Take a close look at add_menu_page hook, it provides argument to supply with icon url <?php add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position ); http://codex.wordpress.org/Function_Reference/add_menu_page add_menu_page( __(‘Poll’,’menu-test’), __(‘Poll’,’menu-test’), ‘manage_options’, ‘manage-polls’, ‘poll_page’, ‘plugins_folder Or Theme folder url/icon.png’ );

Publish author posts only with editor approval?

Add the following code to your functions.php: function allow_contributor_uploads() { $contributor = get_role(‘contributor’); $contributor->add_cap(‘upload_files’); } if ( current_user_can(‘contributor’) && !current_user_can(‘upload_files’) ) { add_action(‘admin_init’, ‘allow_contributor_uploads’); } This will add the upload_files capability to the Contributor role. It only needs to run once; just login to admin as a user with the Contributor role. After it successfully … Read more

Plugins not showing in dashboard->plugins section

Download the plugin as a zip, extract and manually upload the folder that immediately parents all the .php files (i.e not a folder that has another folder as its child) into you plugin folder. Sometimes dev’s can zip things within an extra folder, which confuses wordpress.

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