X7ROOT File Manager
Current Path:
/home/notabjze/digitalcontentmentors.com/wp-content/plugins/optinmonster/OMAPI
home
/
notabjze
/
digitalcontentmentors.com
/
wp-content
/
plugins
/
optinmonster
/
OMAPI
/
ðŸ“
..
📄
Actions.php
(6.96 KB)
📄
Ajax.php
(1.46 KB)
📄
Api.php
(14.17 KB)
📄
ApiAuth.php
(2.41 KB)
📄
ApiKey.php
(5.08 KB)
📄
AssetLoader.php
(5.59 KB)
📄
BaseRestApi.php
(6.65 KB)
📄
Blocks.php
(12.81 KB)
📄
ClassicEditor.php
(6.92 KB)
📄
ConstantContact.php
(7.42 KB)
📄
Debug.php
(4.35 KB)
ðŸ“
EasyDigitalDownloads
📄
EasyDigitalDownloads.php
(9.33 KB)
ðŸ“
Elementor
📄
Elementor.php
(5.36 KB)
📄
Inserter.php
(11.29 KB)
📄
InstallSkin.php
(1.35 KB)
📄
InstallSkinCompat.php
(1.36 KB)
ðŸ“
Integrations
📄
MailPoet.php
(13.36 KB)
ðŸ“
MemberPress
📄
MemberPress.php
(4.12 KB)
📄
Menu.php
(15.42 KB)
📄
Notifications.php
(18.47 KB)
📄
OmuApi.php
(4.03 KB)
📄
Output.php
(24.28 KB)
📄
Pages.php
(16.77 KB)
📄
Partners.php
(4.69 KB)
ðŸ“
Plugins
📄
Plugins.php
(24.34 KB)
ðŸ“
Promos
📄
Promos.php
(1.11 KB)
📄
Refresh.php
(5.75 KB)
📄
RestApi.php
(38.58 KB)
📄
RevenueAttribution.php
(2.97 KB)
📄
Review.php
(1.45 KB)
ðŸ“
Rules
📄
Rules.php
(23.44 KB)
📄
Save.php
(10.8 KB)
📄
Shortcode.php
(3.58 KB)
ðŸ“
Shortcodes
📄
Sites.php
(8.35 KB)
📄
Support.php
(8.25 KB)
📄
Type.php
(2.44 KB)
📄
Urls.php
(8.79 KB)
📄
Utils.php
(7.41 KB)
📄
Validate.php
(9.06 KB)
ðŸ“
WPForms
📄
WPForms.php
(2.6 KB)
📄
Welcome.php
(4.81 KB)
📄
Widget.php
(6.5 KB)
ðŸ“
WooCommerce
📄
WooCommerce.php
(19.58 KB)
📄
WpErrorException.php
(714 B)
Editing: Type.php
<?php /** * Type class. * * @since 1.0.0 * * @package OMAPI * @author Thomas Griffin */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Type class. * * @since 1.0.0 */ class OMAPI_Type { /** * The Post-type slug. */ const SLUG = 'omapi'; /** * Holds the class object. * * @since 1.0.0 * * @var object */ public static $instance; /** * Path to the file. * * @since 1.0.0 * * @var string */ public $file = __FILE__; /** * Holds the base class object. * * @since 1.0.0 * * @var object */ public $base; /** * Primary class constructor. * * @since 1.0.0 */ public function __construct() { // Set our object. $this->set(); // Load actions and filters. $this->type(); } /** * Sets our object instance and base class instance. * * @since 1.0.0 */ public function set() { self::$instance = $this; $this->base = OMAPI::get_instance(); } /** * Loads the OptinMonster API post type. * * @since 1.0.0 */ public function type() { register_post_type( self::SLUG, array( 'labels' => apply_filters( 'optin_monster_api_post_type_labels', array( 'name' => _x( 'Campaigns', 'post type general name', 'optin-monster-api' ), 'singular_name' => _x( 'Campaign', 'post type singular name', 'optin-monster-api' ), 'add_new' => esc_html__( 'Add New', 'optin-monster-api' ), 'add_new_item' => esc_html__( 'Add New Campaign', 'optin-monster-api' ), 'edit_item' => esc_html__( 'Edit Campaign', 'optin-monster-api' ), 'new_item' => esc_html__( 'New Campaign', 'optin-monster-api' ), 'all_items' => esc_html__( 'Campaigns', 'optin-monster-api' ), 'view_item' => esc_html__( 'View Campaign', 'optin-monster-api' ), 'search_items' => esc_html__( 'Search Campaigns', 'optin-monster-api' ), 'not_found' => esc_html__( 'No Campaigns found', 'optin-monster-api' ), 'not_found_in_trash' => esc_html__( 'No Campaigns found in trash', 'optin-monster-api' ), 'parent_item_colon' => '', 'menu_name' => esc_html__( 'Campaigns', 'optin-monster-api' ), ) ), 'public' => false, 'rewrite' => false, 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => false, 'supports' => array( 'title' ), ) ); } }
Upload File
Create Folder