List of all existing WordPress plugins
http://plugins.svn.wordpress.org/ Good luck. It’s a very long list and Otto normally becomes very angry if someone try to scrape the complete SVN-Repo.
http://plugins.svn.wordpress.org/ Good luck. It’s a very long list and Otto normally becomes very angry if someone try to scrape the complete SVN-Repo.
You can get the slug in the options table, stored under the name stylesheet. echo get_option(‘stylesheet’);
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’ );
The most important question which you must ask yourself is Am I the author of the theme or plugin?. If your answer is yes, and you are responsible for the up keep of the plugin or theme, go ahead and change it and modify as you like. If your answer is no, then you should … Read more
Update The following workaround is necessary for users who are using WordPress older than version 4.4. If you are using WordPress v4.4+ then you don’t need to go for such an extensive work-around. Simply follow the Usman Siddiqui’s answer, and it’s that easy. Actual Answer You can add a favicon into your WordPress site in … Read more
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
That’s not a good practice trying to connect the DB by your own methods while WP does it for you initially. The problem with this is that I have to declare these variables ($db_host, $db_user, $db_pass, $db_name) inside the plugin source code. All these properties are defined in wp-config.php file, located in the root area. … Read more
Basic programming techniques you should have learned before building a plugin: You can concatenate checks with && (and) and || (or). You can (and should) guard each CREATE query with its own check SQL syntax you should have looked into before writing queries on your own: IF NOT EXISTS On a related note, please make … Read more
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.
I think this small source code is your solution. It currently doesn’t have frontend feedback for the Sticky Post change, but you can enhance this string, class or whatever you want in the function fb_stick_post. The first function adds the item in the Admin Bar and creates a new Url with a param value. Also, … Read more