Okay
  Public Ticket #2470378
Change Caption of Buttons
Closed

Comments

  • Dominik Funkhauser started the conversation

    Hello, 

    is it possbile to change the caption of several standardbuttons? 

    p.e. "Add New" or "Delete" or "Print" marked red in the picture.

    Thank you!!

  •  2,507
    Aleksandar replied

    Hello Dominik

    Thank you for your purchase.

    You can change "Add New", "Edit" and "Delete" in /wp-content/plugins/wpdatatables/source/class.wpdatatable.php on lines 3426, 3430 and 3435:

    array(
        'text' => __('New entry', 'wpdatatables'),
        'className' => 'new_table_entry DTTT_button DTTT_button_new'
    ),
    array(
        'text' => __('Edit', 'wpdatatables'),
        'className' => 'edit_table DTTT_button DTTT_button_edit',
        'enabled' => false
    ),
    array(
        'text' => __('Delete', 'wpdatatables'),
        'className' => 'delete_table_entry DTTT_button DTTT_button_delete',
        'enabled' => false
    )

    You're looking at the text in the brackets ('New entry', 'Edit' and 'Delete')

    As for Print, you should go to lines 3302 and 3371 of the same file.

    Please note that these changes will be overwritten when the plugin updates, so you will need to do it again.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables