-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtika-doc-pdf-indexer.php
65 lines (59 loc) · 2.15 KB
/
tika-doc-pdf-indexer.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
59
60
61
62
63
64
65
<?php
/**
* Plugin Name: Tika Doc PDF indexer
* Version: 1.0.6
* Plugin URI: https://wordpress.org/plugins/tika-odc-pdf-indexer/
* Description: This indexes your Docs or PDFs into meta datas when uploaded. Based on Apache Tika.
* Author: Carl Alberto
* Author URI: http://carlalberto.code.blog
* Requires at least: 4.8
* Tested up to: 6.0.3
* Text Domain: tika-doc-pdf-indexer
* Domain Path: /lang/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* ( at your option ) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
* This plugin is dependent to Apache Tika Project https://tika.apache.org/
*
* @package WordPress
* @author Carl Alberto
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Load plugin class files.
require_once 'includes/class-tika-doc-pdf-indexer.php';
require_once 'includes/class-tika-doc-pdf-indexer-settings.php';
require_once 'includes/class-tika-doc-pdf-indexer-functions.php';
require_once 'includes/lib/class-tika-doc-pdf-indexer-admin-api.php';
require_once 'includes/lib/class-tika-doc-pdf-indexer-post-type.php';
/**
* Returns the main instance of Tika_Doc_PDF_Indexer to prevent the need to use globals.
*
* @since 1.0.0
* @return object Tika_Doc_PDF_Indexer
*/
function tika_doc_pdf_indexer() {
$instance = Tika_Doc_PDF_Indexer::instance( __FILE__, '1.0.6' );
if ( is_null( $instance->settings ) ) {
$instance->settings = Tika_Doc_PDF_Indexer_Settings::instance( $instance );
}
return $instance;
}
tika_doc_pdf_indexer();