ID ) ? absint( $post->ID ) : 0;
wp_localize_script(
self::JS_FRONT_END_UPLOADER_KEY,
'videopressAjax',
array(
'ajaxUrl' => vphq_get_admin_url( 'admin-ajax.php' ),
'post_id' => $post_id,
)
);
wp_register_style( self::CSS_SCRIPT_KEY, $css_uri . 'uploader.css' );
}
// on_render
public static function on_render() {
wp_enqueue_script( self::JS_TUS_CLIENT_KEY );
wp_enqueue_script( self::JS_FRONT_END_UPLOADER_KEY );
wp_enqueue_style( self::CSS_SCRIPT_KEY );
}
}