forked from mohamdio/Arabic-Webfonts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharabic-webfonts.php
58 lines (47 loc) · 1.3 KB
/
arabic-webfonts.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
51
52
53
54
55
56
57
58
<?php
/**
* Plugin Name: Arabic Webfonts
* Plugin URI: http://plugins.jozoor.com/arabic-webfonts/
* Description: An easy way to add Arabic fonts to any theme without coding using WordPress Customizer.
* Version: 1.4.1
* Author: Jozoor Team
* Author URI: http://plugins.jozoor.com/
* License: GPL2
*
* Text Domain: arabic-webfonts
* Domain Path: /lang/
*
* @package Arabic_Webfonts
* @author Jozoor Team
* @since 1.0
*/
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) exit;
// Load the core plugin class.
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-arabic-webfonts.php' );
/**
* Run activation/deactivation hook.
*
* @since 1.0
*/
register_activation_hook( __FILE__, array( 'AWF_Arabic_Webfonts', 'activate' ) );
register_activation_hook( __FILE__, array( 'AWF_Arabic_Webfonts', 'deactivate' ) );
/**
* Begins execution of the plugin.
*
* @since 1.0
* @return object AWF_Arabic_Webfonts
*/
function awf_run_arabic_webfonts() {
new AWF_Arabic_Webfonts();
}
awf_run_arabic_webfonts();
/**
* Load plugin textdomain.
*
* @since 1.0
*/
function awf_load_textdomain() {
load_plugin_textdomain( 'arabic-webfonts', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
}
add_action( 'plugins_loaded', 'awf_load_textdomain' );