WordPress.org

Support

Support » Alpha/Beta » Changes in WP 2.7 actions?

Changes in WP 2.7 actions?

  • I have noticed that WP 2.7 doesn’t have some actions anymore. I have been using action ‘submitcomment_box’ to add fields on comment edit page, but this action is not included in WP 2.7. Is there a way to expand comment edit form in WP 2.7? Is there a new action for that to replace ‘submitcomment_box’?

    Is there a detailed list of this action changes at all?

    I am all for changes, but removing feature and not offering replacement is not good development policy.

    Regards,
    Milan

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can hook it using the “do_meta_boxes” hook

    add_action('do_meta_boxes', 'asd', 'comment');

    I got the following to do what I needed:

    add_filter('the_editor', 'my_function');

    Your function will be passed the HTML code for the on-page comment editor. You’ll need to be sure to return that code, otherwise your editor will disappear. Look in /wp-includes/general-template.php for more.

    Sample code:

    function my_function($html) {
    $output = $html;
    $output .= ...your html code if applicable
    ...or do whatever you need
    return $output;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changes in WP 2.7 actions?’ is closed to new replies.