Untitled
webwizards
plain_text
13 days ago
634 B
1
No Index
add_action('salesking_dashboard_head', 'salesking_custom_file_upload_script');
function salesking_custom_file_upload_script() {
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
var fieldid = 4534;
var redirecturl = 'https://example.com';
// Add upload button after the text input
var uploadButton = $('<a href="'+redirecturl+'" target="_blank"><button type="button" class="button salesking-upload-btn btn btn-gray" style="margin-top: 4px;">Upload File</button></a>');
$('#salesking_field_'+fieldid).after(uploadButton);
});
</script>
<?php
}Editor is loading...
Leave a Comment