Plugin info

Total downloads: 1,872
Active installs: 40
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 8/16/2007 (6712 days ago)
Added to WordPress: 8/16/2007 (18 years old)
Minimum WordPress version: 2.0
Tested up to WordPress version: 2.2
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 6712 days ago

20/100

Is Macro Expander abandoned?

Possibly abandoned (last update 6712 days ago).

Compatibility

Requires WordPress: 2.0
Tested up to: 2.2
Requires PHP: f

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Keto Macro Calculator
Rating 0.0/5 (0 reviews)Active installs 0

Description

You invoke a macro by typing a special command in your blog post:

[[keyword]]

Upon reading this command, the PHP function named “macro_keyword” is called and
its output is inserted on the page.

You can also pass a parameter to the macro:

[[keyword][param]]

Or multiple parameters:

[[keyword][param1][param2]]

The parameters are separated by the ][ characters, or rather, you can look at it
as a list of things in brackets surrounded by another pair of brackets.

The PHP file for this plugin has an example function that shows you how to write
macros. It is called “[[test]]” and is defined in the function “macro_test”. The
“test” macro takes up to two parameters, both optional.

New in 1.1: If you want to include the macros in RSS content, you will have to
define a second function named “macro_rss_keyword”. If this function is not
present, the macro will not be included in the RSS output.

Known Issues

  • This is a quick hack, not extensively tested but it seems to work for me.

  • WordPress already adds the

and

tags around the [[keyword]] before
the plugin is called — the plugin doesn’t remove those.

  • You can’t use ” and ‘ (and possibly a handful of other characters) in
    parameters because WordPress replaces them with curly quotes before the
    plugin has a chance to parse them. You can use spaces, though.

  • Maybe pass an $is_rss parameter instead of using 2 separate functions?

  • Maybe change syntax to: ?!

About

  • Version 1.1 (8 June 2007) – The parameter separator is now ][ instead of |.
    Added macro_rss_* functions for the RSS content.

  • Version 1.0 (7 June 2007) – First version

Written by Matthijs Hollemans

http://www.hollemansproductions.com/wordpress-macro-expander-plugin.html

Installation

  1. Download the plugin and unzip it.
  2. Add your macro code to “macro_expander.php”
  3. Put “macro_expander.php” in the “wp-content/plugins/” directory.
  4. Activate the plugin from the WordPress control panel.

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

No changelog available