Change Contact Listing Owner Button Text - Action / Hook
Hello,
I wanted to know if you could help me with the action to change the the "Contact Listing Owner" text to "Contact Restaurant" so it will be done within a child theme without having to modify the core files. I just need to change the button text, form title, and form title helper. The function is below:
function va_contact_post_author_button( $post_id = 0, $args = array() ) {
$post_id = $post_id ? $post_id : get_the_ID();
$post = get_post( $post_id );
if ( !$post )
return false;
$post_type_obj = get_post_type_object( $post->post_type );
$defaults = array (
'button_text' => sprintf( __( 'Contact %s Owner' , APP_TD ), $post_type_obj->labels->singular_name ),
'form_title' => sprintf( __( 'Contact the %s Owner', APP_TD ), $post_type_obj->labels->singular_name ),
'form_title_helper' => sprintf( __( 'To inquire about this %1$s, complete the form below to send a message to the %1$s owner.', APP_TD ), strtolower( $post_type_obj->labels->singular_name ) ),
'form_submit_button_text' => __( 'Send Inquiry' , APP_TD ),
'form_class' => '',
);
-----------------------------------------
Thanks!