Tag Info

Hot answers tagged

76

Well what a coincidence that you ask this, Jan! Just today I had time on a long train journey and decided to write a Rewrite Analyzer plugin, one that parses your rewrite rules and highlights the query variables. You can test URLs right there and see what query variables will be set. You can find it in the plugin repository, or just as Monkeyman Rewrite ...


28

Rewrite analyzer Description Making sense of the rewrite mess. Display and play with your rewrite rules. Type Plug and play Screenshot Download link WordPress.org Plugin Directory Related Question A tool to analyze rewrite rules? and all linked to it :-)


18

If you add your item into the menu by adding it to the $submenu array directly you'll avoid the need to do the redirect and be able to use a complete offsite URL as the menu link (i do this myself). add_action( 'admin_menu' , 'admin_menu_new_items' ); function admin_menu_new_items() { global $submenu; $submenu['index.php'][500] = array( 'Menu item ...


16

Internal Link checker Description: Adds a meta box to the post edit screen, that lists and links all posts inside your blog that link to the currently displayed post. Type: Plug & Play. Screenshot: Download-Link: The official Repo: wp.org/extend | Updates come from here. Only stable versions Development Repo: github.com | Newest Features, ...


16

Simple TOC Description: This plugin makes it easy to create a wiki like TOC (table of contents) in your posts or pages using shortcode, no linking or creating anchor is needed. Screenshot: Usage: adds a new tinymce for simple insertion, read here for customizing and advanced features. Download-Link: WordPress.org Related Question: Looking for a ...


14

User Specific Content Description: This Plugin allows you to select specific users by user name, or by role name who can view a specific post content or page content. Screenshot: Download-Link: WordPress.org Related Question: How do I display a user specific content?


12

Cron Job List Description: Lists all cron jobs in a table in your wp_footer(). Type: Plug & Play Screenshot: Download-Link: Github/Gist Related Question: How can I change the frequency of a scheduled event?


12

WP Updates Notifier Description Sends email to notify you if there are any updates for your WordPress site. Can notify about core, plugin and theme updates. Type Plug, setup and play Screenshot Download link WordPress.org Plugin Directory Related Question WP plugin updates


11

Hi @Tom, If I understand your question correctly you don't so much need to know how to add a link to the menu (it seems you already know that) but instead need to learn how to get your link to redirect correctly, right? Redirecting to an External URL from an Admin Menu Item If so what you need to do is to not use the menu item function but instead "hook" ...


11

I wrote a shortcode function based on "Twitter Hash Tag Widget" plugin just copy this function to your themes functions.php file function tweets_by_hashtag_9867($atts, $content = null){ extract(shortcode_atts(array( "hashtag" => 'default_tag', "number" => 5, ), $atts)); $api_url = ...


9

Bainternet User Ranks Description: Create and display user rank titles based on there post count, comment count or both. This is aimed at multi Author,User blogs which you can create rank levels in your blog based on author post count, comment count or both. Its ranking system similar to a forum. Screenshot: Usage: <?php $baur_plugin = new ...


8

Really Simple Google Analytics Description: Simply adds the asynchronous Google Analytics tracking code to the footer of your website. The only option is for you to enter your Google Web Property Id and thats it. Plugin includes support for the new trackPageLoadTime Google Analytics feature Screenshot Download-Link WordPress.org Plugin Repo Related ...


8

Twitter Hash Tag Shortcode Description: Displaying the most recent twitter status updates for a particular hash tag in your posts/pages using shortcode. Usage: [hashtag_tweets hashtag="YOUR_TAG" number="NUMBER_OF_TWEETS_TO_GET"] Download-Link: WordPress.org Related Question: Importing Tweets with certain hashtags into Wordpress


7

Network Terminator Type: Admin, Multisite Description: Alows to bulk add terms across network. You can select what sites will be affected. Works with custom taxonomies. Works from any site in the network. version 0.0.1 = Use with care. Any feedback is much appreciated! Screenshots: Before: After: Download link: ...


6

Post Status Menu Items Description This plugin is useful for people who regularly use all or most of the post statuses. Posts, Pages, and Custom Post Types are all supported by the plugin with options to toggle menu statuses on/off for each post type. The plugin adds the following post statuses to to the Dashboard's submenus: Drafts, Pending, Scheduled, ...


6

For simple cases like quick one-liner returns one should remember that it's possible to hook an anonymous function directly in the add filter call, e.g: add_filter('some_filter_hook', function($v){return str_replace('..', '.', $v);}); add_action('some_action_hook', function(){echo '....';});


6

I had coded something like this a while back and i remember wanting to upload it to the plugin repository but never had the time, Basically it adds a meta box to the post or page edit screen and lets the user select specific users by name or roles and then it check using the_content filter, so here you go: Update: It just got approved in to WordPress ...


6

You can do a query like: SELECT ID, post_title, post_date, post_content FROM wp_posts WHERE post_content LIKE '%your-post-title%' ORDER BY post_date to get all posts that linked that old post order by date.


6

After reading this thread I saw that I might need this also sometimes. So here is the result: The internal link checker plugin It adds a meta box at your post edit screens that shows links to all posts who link internally to the currently displayed post. If you want to alter the output (add something for eg.), please use the provided filter. An example of ...


5

Dynamic Template serving for devices Description: Allows using different templates (and related stylesheets) for different devices (Read the comments inside the code). Note: Device detection not included. If you have tried it in combination with Modernizr, please leave a comment. Type: Template Tag Download-Link: Github/Gist Related Question: ...


5

Advanced Hooks API Description Experimental function for more powerful and shorthand dealing with hooks. Type Provides functions to use in other code. Download link WordPress.org Related Question Implementing advanced add_* function wrappers


5

Featured Link Image Description Add a meta box in the Links add/edit page for easy uploading/inserting images in the Image Address field. Type Plug'n'Play Screenshot Download-Link WordPress.org Related Question Uploading images for links


4

It looks for me that you are adding this event only when there is no such event 'send_email_alerts_hook' scheduled yet. Try something like this and let me know if it workded. function shedule_email_alerts() { if ( !wp_next_scheduled( 'send_email_alerts_hook' ) ) { wp_schedule_event(time(), 'daily', 'send_email_alerts_hook'); } else { ...


4

You might want to look into magic class methods and overloading in PHP which will have the function name called passed as a parameter. Then you can make decisions based on the function name like return__some_string I pin-up some exemplary and untested code: class magiCall { public static function __callStatic ( string $name , array $arguments ) { ...


4

You could also write your own simple get_template_part alias function: The following allows 3 subfolders for template parts that sit in a theme root folder named devices. <?php // STYLESHEETS function print_device_styles( $client = 'desktop' ) { $client = apply_filters( 'set_theme_client', $client ); wp_enqueue_style( ...


4

I had released my code as Advanced Hooks API plugin in official repository. View source in trac. Some examples: add_action_with_arguments('test', 'printf', 10, 'boo%s', '<br />'); do_action('test'); // boo add_filter_return('test2',10,'boo'); echo apply_filters('test2','not boo') . '<br />'; // boo add_filter_append('test3',10,' and boo'); ...


3

Default Values For Attachments Description Adds a simple media options page where you can set defaults for Attachment Title, Caption and Description. Works only for images at this point, but i'm planning to extend to any attachments. Type Plug and play Screenshot Download link Default Values For Attachments - WordPress.org Related Question Is ...


3

Deprecation Checker Description Extracts a list of deprecated functions from core and scans the themes/plugins directories for instances of said functions. The output includes file name and line number as well as the recommended function to use in its place. An admin can add other paths to be scanned as well as include other functions for which to search. ...


2

There's really no documentation for it yet, but you'll probably be able to do it hooking to the attachment_fields_to_save filter and inserting the default caption there. From the Codex: attachment_fields_to_save applied to fields associated with an attachment prior to saving them in the database. Called in the media_upload_form_handler function. ...


1

I found out that add_filter('template', ...) and add_filter('stylesheet', ...) must be called at the same time for it to work... at least in my case.



Only top voted, non community-wiki answers of a minimum length are eligible