Skip to content

Instantly share code, notes, and snippets.

@mcorkum
Last active August 10, 2016 13:34
Show Gist options
  • Select an option

  • Save mcorkum/7a1b8b94cd593d0250e6c0cb71ebe3c1 to your computer and use it in GitHub Desktop.

Select an option

Save mcorkum/7a1b8b94cd593d0250e6c0cb71ebe3c1 to your computer and use it in GitHub Desktop.

Revisions

  1. mcorkum revised this gist Aug 10, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions emit-musk.php
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    Plugin Name: Emit Musk
    Plugin URI: https://mantelope.io
    Description: Adds musk to your content.
    Version: 9000000000
    Version: 9,000,000,000.7684728 ½
    Author: Industry
    Author URI: https://mantelope.io
    License: Yes.
    @@ -20,4 +20,4 @@ public function emit_the_musk( $content ) {
    }
    }

    new EmitMusk();
    new EmitMusk();
  2. mcorkum revised this gist Aug 10, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion emit-musk.php
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@
    Version: 9000000000
    Author: Industry
    Author URI: https://mantelope.io
    License: No.
    License: Yes.
    */

    class EmitMusk {
  3. mcorkum revised this gist Aug 10, 2016. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion emit-musk.php
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,6 @@
    */

    class EmitMusk {

    // Comments are for suckers
    public function __construct() {
    add_filter( 'the_content', array( $this, 'emit_the_musk' ) );
  4. mcorkum created this gist Aug 10, 2016.
    24 changes: 24 additions & 0 deletions emit-musk.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    <?php
    /*
    Plugin Name: Emit Musk
    Plugin URI: https://mantelope.io
    Description: Adds musk to your content.
    Version: 9000000000
    Author: Industry
    Author URI: https://mantelope.io
    License: No.
    */

    class EmitMusk {

    // Comments are for suckers
    public function __construct() {
    add_filter( 'the_content', array( $this, 'emit_the_musk' ) );
    }

    public function emit_the_musk( $content ) {
    return $content . '<p>Musk</p>';
    }
    }

    new EmitMusk();