New actions and WordPress filters 3.8


As not everything is going to be aesthetic novelties, you should know that WordPress 3.8 has also incorporated new actions and filters of vital importance for developers, either topics or plugins.

The list of new features in this regard is as follows:

  • automatic_updates_complete: Action to be executed after each automatic update (wp-admin / includes / class-wp-upgrader.php) [19659005] automatic_updates_debug_email: Email debug filter that can be sent after a kernel update in the background (wp-admin / includes / class-wp-upgrader.php)
  • comment_notification_notify_author: Filter whether or not to notify the authors when have comments on your entries (wp-includes / pluggable.php)
  • dashboard_glance_items: Includes additional elements in the desktop widget "At a glance", formerly known as "Right now" (wp-admin / includes /dashboard.php)
  • user_{$name}_label: Filter the tag of a user's contact method (wp-admin / user-edit.php)
  • wp_prepare_themes_for_js: Filter the themes prepared for JavaScript, in themes .php. It can be useful to change the order, which by default is by name (wp-admin / includes / theme.php)

You have a more complete list, with other minor changes, in WPSeek .

] This is an original content of WordPress Help – Resources, themes, plugins and tutorials in Spanish and published Fernando Tellado first here: New actions and WordPress filters 3.8

Filtering forbidden words in WordPress

One functionality of the old forums of all life that is essential is the filters of forbidden words those that, if a user writes them in a message they are automatically blocked by the system.

Interestingly, despite the enormous growth of WordPress, thanks in part to its comment system that makes it active almost like a forum, to have a filter system of forbidden words was something of the most requested by the users and not always available.

This is over, because with the plugin WP Content Filter you can easily define which words are they will block, being replaced by asterisks. In this way, if you add the word "press" in the field of forbidden words, it will appear as "*****". Now, as you may have guessed, this has a danger, and that is if you write someone in a comment or where "WordPress" would appear as "Word *****", so be conscientious with which words you choose to block. [19659003]

For the rest, the plugin is very simple . In your settings screen you have a field to include the forbidden words (separated by commas) and then a series of configurations of how you want it to behave and where the filter will apply, being able to choose to filter in practically all parts, namely …

  • Entries
  • Recent ticket entries from the sidebar
  • Title entries
  • Comments [19659007] Widget of recent comments from the sidebar
  • Authors of comments
  • Tags
  • Tags cloud

As you see, very complete and, above all, useful and effective, great to remove hobbies to the spammers and heavy of the autodrome and things like that that there is always.

Try it and tell us that.

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

Master the "loop" like an expert without touching a line of code

There are many times that we talk about " loop ", that mysterious block in every theme for WordPress that takes care of show the information created by us on our site.

In addition, there are many modifications and customizations that we can apply by modifying the "loop", but there is a catch, and that is that you have to modify the files of the theme.

Well, if you want to customize your theme and you do not dare to touch PHP files now you have a possibility to do it without leaving the WordPress Desktop, and all with "shortcodes".

The plugin WordPress Loop uses the class WP_Query to generate the "loop" widget. you can see the full list of possible arguments ( $ args ) on the Codex page of query_posts () . The WordPress Loop widget also takes advantage of filters and action hooks for advanced customizations.

The widget has more than 35 options to choose from. You can customize your WordPress loop in one or more input types, categories, labels, custom taxonomies, authors, dates, custom fields and much more.

Also, it has support for input thumbnails, fixed entries, paging, length of customizable content (by number of words), and you can change even the order of number of options.

In the FAQ of the plugin you have the complete list of shortcodes, filters and hooks applicable. It is very complete.

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

All WordPress filters and action hooks

If you are a developer you can not miss the database of hooks and filters that Adam Brown has developed, essential.

The entry All filters and action hooks of WordPress ] published it first Fernando Tellado in Ayuda WordPress . Do not copy content, do not say anything good about you to your readers.

Improve WordPress with filters, actions and functions • WordPress Help

We use third party cookies with services, also guarantors of your privacy, that analyze your browsing uses so that we can improve the contents, if you are already subscribed to the newsletter and the shared elements in social networks and the comments form. [19659002] 1P_JAR, APISID, CONSENT, HPSID, NID, SAPISID, SID, SIDCC, SSID, disqus_unique, disqusauth

disqus_unique, disqusauth