Title: Moody Shortcodes
Author: Nashwan D
Published: <strong>December 2, 2013</strong>
Last modified: December 2, 2013

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-moody-shortcodes.svg)

# Moody Shortcodes

 By [Nashwan D](https://profiles.wordpress.org/alex-ye/)

[Download](https://downloads.wordpress.org/plugin/wp-moody-shortcodes.0.1.zip)

 * [Details](https://wordpress.org/plugins/wp-moody-shortcodes/#description)
 * [Reviews](https://wordpress.org/plugins/wp-moody-shortcodes/#reviews)
 *  [Installation](https://wordpress.org/plugins/wp-moody-shortcodes/#installation)
 * [Development](https://wordpress.org/plugins/wp-moody-shortcodes/#developers)

 [Support](https://wordpress.org/support/plugin/wp-moody-shortcodes/)

## Description

#### Important Notes:

 1. This plugin is for developers, not general users.
 2. This plugin doesn’t have a GUI ( Admin Settings Page ).

#### Basic Examples

You can use this plugin in many ways depending on your needs, this examples only
for learning purposes:

    ```
    // Register the "test-1" shortcode, Works only in the administrators posts or outside the loop. Moody_Shortcodes_Manager::register( 'test-1', function() {      if ( in_the_loop() ) {          $post_author = get_post_field( 'post_author', get_post() );          if ( ! user_can( $post_author, 'administrator' ) ) {             return false;          } // end if      } // dnd if      return true;  }, 'my_test_shortcode' );    // Register the "test-2" shortcode, Works only in pages or outside the loop. Moody_Shortcodes_Manager::register( 'test-2', function() {     return ( ! in_the_loop() XOR get_post_type() === 'page' ); }, 'my_test_shortcode' );    // Register the "test-3" shortcode, Works only when bbPress plugin is activated. Moody_Shortcodes_Manager::register( 'test-3', function() {     return function_exists( 'is_bbpress' ); }, 'my_test_shortcode' ); 
    ```

#### Contributing

If you love this plugin star/fork it on the [GitHub Repository](https://github.com/nash-ye/WP-Moody-Shortcodes).

## Installation

 1. Upload and install the plugin
 2. Use the simple API to powerful your plugin.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Moody Shortcodes” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Nashwan D ](https://profiles.wordpress.org/alex-ye/)

[Translate “Moody Shortcodes” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-moody-shortcodes)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-moody-shortcodes/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-moody-shortcodes/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-moody-shortcodes/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-moody-shortcodes/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.1

 * The Initial version.

## Meta

 *  Version **0.1**
 *  Last updated **13 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 2.5 or higher **
 *  Tested up to **3.7.41**
 * Tags
 * [api](https://wordpress.org/plugins/tags/api/)[conditional-tags](https://wordpress.org/plugins/tags/conditional-tags/)
   [shortcode](https://wordpress.org/plugins/tags/shortcode/)[shortcodes](https://wordpress.org/plugins/tags/shortcodes/)
 *  [Advanced View](https://wordpress.org/plugins/wp-moody-shortcodes/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wp-moody-shortcodes/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-moody-shortcodes/reviews/)

## Contributors

 *   [ Nashwan D ](https://profiles.wordpress.org/alex-ye/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-moody-shortcodes/)