public function extra_permalink_field_buttons($return, $id, $new_title, $new_slug) { $return = parent::extra_permalink_field_buttons($return, $id, $new_title, $new_slug); //make sure this is only when editing if (!empty($id)) { $href = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'duplicate_event', 'EVT_ID' => $id), $this->_admin_base_url); $title = esc_attr__('Duplicate Event', 'event_espresso'); $return .= '<a href="' . $href . '" title="' . $title . '" id="ee-duplicate-event-button" class="button button-small" value="duplicate_event">' . $title . '</button>'; } return $return; }