This page is optimized for AI. For the human-readable: Format Event

Format Event

Event Metadata

Event Description

dsad asd á

abc def 12345

 

<?php
/**
Plugin Name: Join Innovation Portal
Description: Create Partnerships - Create Successful Ventures.
Version: 1.122.1
Author: bbv Software Services
Author URI: https://bbv.ch
Copyright: 2020 bbv Software Services
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Don't access directly
};

define( 'JIP_VERSION', '1.122.1' );
define( 'JIP_FILE', __FILE__ );
define( 'JIP_BASENAME', plugin_basename( JIP_FILE ) );
define( 'JIP_DIR', dirname( JIP_FILE ) ); // Join_Innovation_Portal plugin directory

require_once JIP_DIR . '/config.php';
require_once JIP_SETTINGS_PAGE . '/jip-settings-base.php';
require_once JIP_SETTINGS_PAGE . '/jip-settings-page.php';

function jip_redirect_404() {
    global $wp_query;

    $wp_query->set_404();

    status_header( 404 );
    get_template_part( 404 );

    exit();
}

function disable_wp_emojicons() {
    // all actions related to emojis
    remove_action( 'admin_print_styles', 'print_emoji_styles' );
    remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
    remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
    remove_action( 'wp_print_styles', 'print_emoji_styles' );
    remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
    remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
    remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
}

add_action( 'init', 'disable_wp_emojicons' );

add_action('init', 'jip_rewrite_rule', 10, 0);

function jip_rewrite_rule() {
    // Fixing the TranslatePress issue, should be removed in the future
    // add_rewrite_rule('^people/s/([0-9]{1,})?', 'index.php?pagename=profile&&id=$matches[1]', 'top');
    // add_rewrite_rule('^([^/]*)/s/([0-9]{1,})?', 'index.php?pagename=$matches[1]&&id=$matches[2]', 'top');

    //  To flush your rewrite rules by going to Settings > Permalinks and clicking "Save Changes".
    add_rewrite_rule('^ventures/([0-9]{1,})?', 'index.php?pagename=venture&id=$matches[1]', 'top');
    add_rewrite_rule('^events/([0-9]{1,})?', 'index.php?pagename=event&id=$matches[1]', 'top');
    add_rewrite_rule('^people/([0-9]{1,})?', 'index.php?pagename=profile&id=$matches[1]', 'top');
    add_rewrite_rule('^organizations/([0-9]{1,})?', 'index.php?pagename=organization&id=$matches[1]', 'top');
    add_rewrite_rule('^groups/([0-9]{1,})?', 'index.php?pagename=group&id=$matches[1]', 'top');
    add_rewrite_rule('^group-details/([0-9]{1,})?', 'index.php?pagename=group-details&id=$matches[1]', 'top');
    add_rewrite_rule('^challenges/([0-9]{1,})?', 'index.php?pagename=challenge&id=$matches[1]', 'top');
    add_rewrite_rule('^event-registration/([0-9]{1,})?', 'index.php?pagename=event-registration&id=$matches[1]', 'top');
    add_rewrite_rule('^event-registration-form/([0-9]{1,})?', 'index.php?pagename=event-registration-form&id=$matches[1]', 'top');

    // Init settings menu in admin dashboard
    $settings = new Jip\Settings();

}