public_html/wp-content/plugins/js_composer/include/autoload/ui-vc-pointers.php
/**
 * Remove Vc pointers keys to show Tour markers again.
 * @sine 4.5
 */
Remove Vc pointers keys to show Tour markers again.
Remove Vc pointers keys to show Tour markers again .
function vc_pointer_reset() {
	global $vc_default_pointers;
	if ( ! vc_verify_admin_nonce() || ! current_user_can( 'manage_options' ) ) {
		die();
	}
	$pointers = (array) apply_filters( 'vc_pointers_list', $vc_default_pointers );
	$prev_meta_value = get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true );
	$dismissed = explode( ',', (string) $prev_meta_value );
	if ( count( $dismissed ) > 0 && count( $pointers ) ) {
		$meta_value = implode( ',', array_diff( $dismissed, $pointers ) );
		update_user_meta( get_current_user_id(), 'dismissed_wp_pointers', $meta_value, $prev_meta_value );
	}
}
function vc_pointer_reset ( ) { global $ vc_default_pointers ; if ( ! vc_verify_admin_nonce ( ) || ! current_user_can ( 'manage_options' ) ) { die ( ) ; } $ pointers = ( array ) apply_filters ( 'vc_pointers_list' , $ vc_default_pointers ) ; $ prev_meta_value = get_user_meta ( get_current_user_id ( ) , 'dismissed_wp_pointers' , true ) ; $ dismissed = explode ( ',' , ( string ) $ prev_meta_value ) ; if ( count ( $ dismissed ) > 0 && count ( $ pointers ) ) { $ meta_value = implode ( ',' , array_diff ( $ dismissed , $ pointers ) ) ; update_user_meta ( get_current_user_id ( ) , 'dismissed_wp_pointers' , $ meta_value , $ prev_meta_value ) ; } }
Remove Vc pointers keys to show Tour markers again.
Remove Vc pointers keys to show Tour markers again .