This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.


Remove themeblvd_get_comment_form_args and replace with modified version

  • Creator
  • #16092

    Hi Jason, I would like to alter the Comments area through an entire site, and I see I could change themeblvd_get_comment_form_args inside framework / includes / helpers.php

    Since I want to upgrade and take advantage of the child theme system, I want to make all my changes, even though they are small, in the functions.php of my child (default) theme.

    So I place this into my child functions.php file:

    1) function my_get_comment_form_args() {
    // do something… (this includes my small changes)

    2) remove_all_actions( ‘themeblvd_get_comment_form_args’ );

    3) add_action( ‘themeblvd_get_comment_form_args’, ‘my_get_comment_form_args’ );

    And nothing changes.

    What am I doing wrong or not seeing here?
    Thanks, -SS

Viewing 1 replies (of 1 total)
  • Author
  • #16101
    Jason Bobich


    There’s no action called “themeblvd_get_comment_form_args”. themeblvd_get_comment_form_args() is a function, in which the returned array of data has a filter on it.

    So, you’ve got an array of arguments, and you’re using the filter “themeblvd_comment_form” to manipulate this array.

    function my_comment_form( $args ) {
    	$args['title_reply'] = 'My reply text...';
    	$args['cancel_reply_link'] = 'My cancel text...';
    	// etc ...
    	return $args;
    add_filter( 'themeblvd_comment_form', 'my_comment_form' );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.