replacer = Optml_Replacer::instance(); self::$_instance->rest = new Optml_Rest(); self::$_instance->admin = new Optml_Admin(); } return self::$_instance; } /** * Load the localisation file. * * @access public * @since 1.0.0 */ public function load_plugin_textdomain() { load_plugin_textdomain( 'optimole-wp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); } /** * Install routine actions. * * @access public * @since 1.0.0 */ public function activate() { update_option( OPTML_NAMESPACE . '-version', OPTML_VERSION ); if ( is_multisite() ) { return; } set_transient( 'optml_fresh_install', true, MINUTE_IN_SECONDS ); } /** * Cloning is forbidden. * * @access public * @since 1.0.0 */ public function __clone() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'optimole-wp' ), '1.0.0' ); } /** * Unserializing instances of this class is forbidden. * * @access public * @since 1.0.0 */ public function __wakeup() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'optimole-wp' ), '1.0.0' ); } }