-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaq-block-for-gutenberg.php
executable file
·50 lines (45 loc) · 1.34 KB
/
faq-block-for-gutenberg.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* Plugin Name: FAQ Block For Gutenberg
* Plugin URI : https://wordpress.org/plugins/faq-block-for-gutenberg/
* Description: This plugin provides a quick and easy way to add FAQ's block using Gutenberg visual editor.
* Tags: blocks, faq, gutenberg faq, editor, faq block
* Author: Dilip Bheda
* Author URI: http://profiles.wordpress.org/dilipbheda
* Text Domain: faq-block-for-gutenberg
* Domain Path: /languages
* Version: 2.6
* License: GPLv3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*
* @package Faq_Block_For_Gutenberg
*/
// Include class file.
require_once plugin_dir_path( __FILE__ ) . '/includes/class-faq-block-for-gutenberg.php';
/**
* Load textdomain.
*/
function gutenberg_faq_block_textdomain() {
load_plugin_textdomain( 'faq-block-for-gutenberg', false, basename( __DIR__ ) . '/languages' );
}
/**
* Register activation.
*/
function gutenberg_faq_block_activation() {
// Activation code.
}
register_activation_hook( __FILE__, 'gutenberg_faq_block_activation' );
/**
* Register deactivation.
*/
function gutenberg_faq_block_deactivation() {
// Deactivation code.
}
register_deactivation_hook( __FILE__, 'gutenberg_faq_block_deactivation' );
/**
* Plugin init.
*/
function gutenberg_faq_block_init() {
new Faq_Block_For_Gutenberg();
}
add_action( 'plugins_loaded', 'gutenberg_faq_block_init' );