WordPress.org

Ready to get started?Download WordPress

Forums

Simple History
[resolved] Suggestion: Custom Event (5 posts)

  1. jbutz
    Member
    Posted 1 year ago #

    Add the ability to add custom events, for example add a note that I just changed something in a theme.

    http://wordpress.org/extend/plugins/simple-history/

  2. Pär Thernström
    Member
    Plugin Author

    Posted 1 year ago #

    I believe you already can do that. Some examples:

    <?php
    
    # Check that function exists before trying to use it
    # Just in case someone disabled the history plugin or similar
    if (function_exists("simple_history_add")) {
    
        # Log that an email has been sent
        simple_history_add(array(
            "object_type" => "Email",
            "action" => "sent",
            "object_name" => "Hi there"
        ));
    
        # Will show “Plugin your_plugin_name Edited” in the history log
        simple_history_add("action=edited&object_type=plugin&object_name=your_plugin_name");
    
        # Will show the history item "Starship USS Enterprise repaired"
        simple_history_add("action=repaired&object_type=Starship&object_name=USS Enterprise");
    
    ?>

    Would that work for you?

  3. jbutz
    Member
    Posted 1 year ago #

    I guess I could make that work. I was thinking that a textarea could be provided for short notes to be made in a free-form manner.

  4. Pär Thernström
    Member
    Plugin Author

    Posted 1 year ago #

    Ah, I understand. I'll add that to the feature-request-list!

  5. jbutz
    Member
    Posted 1 year ago #

    Awesome, thank you. Sorry for not being more clear at first.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.