summaryrefslogtreecommitdiff
path: root/draggable-post-order.php
diff options
context:
space:
mode:
Diffstat (limited to 'draggable-post-order.php')
-rw-r--r--draggable-post-order.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/draggable-post-order.php b/draggable-post-order.php
new file mode 100644
index 0000000..80abf34
--- /dev/null
+++ b/draggable-post-order.php
@@ -0,0 +1,47 @@
+<?php
+/**
+ * Draggable Post Order
+ *
+ * @package Draggable_Post_Order
+ */
+
+/**
+ * Plugin Name: Draggable Post Order
+ * Description: Drag'n'drop posts to order them
+ * Plugin URI: https://gitlab.com/DRogueRonin/wp-plugin-draggable-post-order
+ * Author: Daniel Weipert
+ * Version: 1.0.0
+ * Author URI: https://dweipert.de
+ * Text Domain: draggable-post-order
+ * Domain Path: /languages
+ */
+
+require __DIR__ . '/vendor/autoload.php';
+
+/**
+ * Callback for "init" action
+ */
+function draggable_post_order() {
+ \Draggable_Post_Order\Draggable_Post_Order::init();
+}
+add_action( 'init', 'draggable_post_order' );
+
+/**
+ * URL to enqueue scripts and styles
+ *
+ * @param string $path Relative path inside the build folder.
+ *
+ * @return string
+ */
+function draggable_post_order_assets_url( $path ) {
+ return plugin_dir_url( __FILE__ ) . "build/$path";
+}
+
+/**
+ * Absolute path to plugin folder
+ *
+ * @return string
+ */
+function draggable_post_order_path() {
+ return plugin_dir_path( __FILE__ );
+}