A new feature was added, one that resembles WordPress’ own “pluggable” system.

It’s intended to give you more control over certain parts of the plugin, as well as extend the functionality of the plugin with your own PHP code.

If the plugin finds a file by the name of “infusion4wppluggable.php” in its startup directory, it will load it first, giving your code preemptive rights over some of the plugin’s own functions, as well as the WordPress “pluggable.php” script.

Currently, the following infusionWP functions are pluggable:

  • i4w_mail() : i4w native mail sender
  • i4w_wpautop() : i4w wpautop replacemen
  • i4w_login_access() : this function logs user login
  • i4w_wpuntexturize() : i4w wpuntexturize replacement
  • i4w_sc_exec() : i4w native PHP code executor shortcode [i4w_exec]
  • i4w_sc_date() : i4w native date shortcode [i4w_date]

This file can also be used to add functionality that you may want to refer in other parts of the plugin (using [i4w_exec] or in your theme templates.

Three new shortcodes were also added to assist in providing additional security to your shortcode-based forms. These are:

  • i4w_nonce_field (See: http://codex.wordpress.org/Function_Reference/wp_nonce_field)
  • i4w_nonce_url (See: http://codex.wordpress.org/Function_Reference/wp_nonce_url)
  • i4w_nonce_create (See: http://codex.wordpress.org/Function_Reference/wp_create_nonce)

Each of these shortcodes correspond to the similarly named WordPress functions. Please refer to them for additional details.


Scroll to Top