Results 1 to 1 of 1

Thread: Change Contact Listing Owner Button Text - Action / Hook

  1. #1
    Thread Starter
    Expired Customer jeffp808's Avatar
    Join Date
    Jun 2013
    Location
    Chile
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dimitris Cannot fine file to change Contact Listing Owner button
    By sandhu40 in forum Help Using Vantage (Legacy)
    Replies: 5
    Last Post: March 28th, 2014, 11:23 AM
  2. Dimitris contact listing owner button
    By noticedvantage in forum Help Using Vantage (Legacy)
    Replies: 6
    Last Post: December 28th, 2013, 01:34 PM
  3. [SOLVED] Where can I find contact listing owner button?
    By dorothy in forum Vantage General Discussion (Legacy)
    Replies: 2
    Last Post: August 27th, 2013, 08:37 PM
  4. Where can I find contact listing owner button?
    By dorothy in forum Help Using Vantage (Legacy)
    Replies: 1
    Last Post: August 21st, 2013, 09:42 AM
  5. [SOLVED] Contact listing owner BUTTON does not work at all
    By dorothy in forum Report Vantage Bugs (Legacy)
    Replies: 3
    Last Post: August 19th, 2013, 05:13 AM