-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwp-movie-list.php
36 lines (29 loc) · 902 Bytes
/
wp-movie-list.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Plugin Name: WP Movie List
* Plugin URI: https://example.com
* Description: A plugin to manage and display movies.
* Version: 1.0.0
* Author: Saman Azizi
* Author URI: https://example.com
* Text Domain: wp-movie-list
* Domain Path: /languages
*/
if (!defined('WPINC')) {
die;
}
// Autoload Composer dependencies
require plugin_dir_path(__FILE__) . 'vendor/autoload.php';
// Include the core plugin class
require plugin_dir_path(__FILE__) . 'includes/class-wp-movie-list.php';
// Run the plugin
function run_wp_movie_list() {
$plugin = new WPMovieList\WPMovieList();
$plugin->Webilia_run();
}
run_wp_movie_list();
register_activation_hook(__FILE__, 'wp_movie_list_activate');
function wp_movie_list_activate() {
$plugin = new WPMovieList\WPMovieList();
$plugin->Webilia_create_challenge_page();
}