wordpress/wp-content/themes/basic/themify/themify-wpajax.php
/**
 * AJAX - Remove image assigned in Themify custom panel. Clears post_image and _thumbnail_id field.
 * @since 1.7.4
 * @package themify
 */
Remove image assigned in Themify custom panel.
Remove image assigned in Themify custom panel .
function themify_remove_video() {
	check_ajax_referer( 'themify-custom-panel', 'nonce' );
	if ( isset( $_POST['postid'] ) && isset( $_POST['customfield'] ) ) {
		update_post_meta( $_POST['postid'], $_POST['customfield'], '' );
	} else {
		_e( 'Missing vars: post ID and custom field.', 'themify' );
	}
	die();
}
function themify_remove_video ( ) { check_ajax_referer ( 'themify-custom-panel' , 'nonce' ) ; if ( isset ( $ _POST [ 'postid' ] ) && isset ( $ _POST [ 'customfield' ] ) ) { update_post_meta ( $ _POST [ 'postid' ] , $ _POST [ 'customfield' ] , '' ) ; } else { _e ( 'Missing vars: post ID and custom field.' , 'themify' ) ; } die ( ) ; }
AJAX - Remove image assigned in Themify custom panel.
AJAX - Remove image assigned in Themify custom panel .