/** * Base functions and back-compar items. * * @package C4WP */ declare(strict_types=1); /* @free:start */ /** * Setup admin for redirection upon activation. * * @return void */ function c4wp_redirect_after_activation() { add_option( 'c4wp_redirect_after_activation', true ); } add_action( 'admin_init', 'c4wp_activation_redirect' ); /** * Redirect users to the plugins settings page upon activation. * * @return void */ function c4wp_activation_redirect() { if ( is_admin() && get_option( 'c4wp_redirect_after_activation', false ) ) { delete_option( 'c4wp_redirect_after_activation' ); $admin_url = add_query_arg( array( 'page' => 'c4wp-admin-captcha' ), network_admin_url( 'admin.php' ) ); wp_safe_redirect( esc_url( $admin_url ) ); exit(); } } /* @free:end */ /** * Declare compatibility with WC HPOS. * * @return void */ add_action( 'before_woocommerce_init', function () { if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', C4WP_PLUGIN_FILE, true ); } } ); /** * Uninstall the plugin * * @return void */ if ( ! function_exists( 'c4wp_uninstall' ) ) { /** * Uninstaller for plugin data, if desired in settings. * * @return void * * @since 7.6.0 */ function c4wp_uninstall() { $get_site_options = is_multisite(); if ( $get_site_options ) { $options = get_site_option( 'c4wp_admin_options' ); } else { $options = get_option( 'c4wp_admin_options' ); } if ( isset( $options['delete_data_enable'] ) && $options['delete_data_enable'] ) { if ( $get_site_options ) { $network_id = get_current_network_id(); global $wpdb; // Ignore as is valid use. $wpdb->query( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching $wpdb->prepare( " DELETE FROM $wpdb->sitemeta WHERE meta_key LIKE %s AND site_id = %d ", array( '%c4wp%', $network_id, ) ) ); } else { global $wpdb; // Ignore as is valid use. $wpdb->query( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching $wpdb->prepare( " DELETE FROM $wpdb->options WHERE option_name LIKE %s ", array( '%c4wp%', ) ) ); } // Remove specific Freemius entry. delete_site_option( 'fs_c4wp' ); $table_name = $wpdb->prefix . 'c4wp_failed_login_tracking'; // We ignore the query as its valid use as well as the statement given its a custom table. $wpdb->query( 'DROP TABLE IF EXISTS ' . $table_name ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.SchemaChange if ( $get_site_options ) { $options = delete_site_option( 'c4wp_admin_options' ); } else { $options = delete_option( 'c4wp_admin_options' ); } } } } /** * Backfill function for users with C4WP integrated into a custom form. * * @return bool - Result. */ if ( ! function_exists( 'c4wp_verify_captcha' ) ) { /** * Verify a given response. * * @param string $response - String to verify. * * @return bool - Did verify result. * * @since 7.6.0 */ function c4wp_verify_captcha( $response = '' ) { if ( class_exists( 'C4WP\C4WP_Functions' ) ) { return C4WP\C4WP_Functions::c4wp_verify_captcha( $response ); } return false; } } if ( ! function_exists( 'anr_verify_captcha' ) ) { /** * Verify a given response. Exists for very old users. * * @param string $response - String to verify. * * @return bool - Did verify result. * * @since 7.6.0 */ function anr_verify_captcha( $response = '' ) { if ( class_exists( 'C4WP\C4WP_Functions' ) ) { return C4WP\C4WP_Functions::c4wp_verify_captcha( $response ); } return false; } } /* @free:start */ if ( ! function_exists( 'c4wp_free_on_plugin_activation' ) ) { /** * Handle swapping of premiums and free editions bu disabling premium edition. * * @return void * * @since 7.6.0 */ function c4wp_free_on_plugin_activation() { if ( is_plugin_active( 'advanced-nocaptcha-and-invisible-captcha-pro/advanced-nocaptcha-and-invisible-captcha-pro.php' ) ) { deactivate_plugins( 'advanced-nocaptcha-and-invisible-captcha-pro/advanced-nocaptcha-and-invisible-captcha-pro.php' ); } } } /* @free:end */ Schelton Assoumou invited to the 400 Foundation - Schelton Assoumou

Schelton Assoumou invited to the 400 Foundation

Schelton Assoumou invited to the 400 Foundation “Moving the Dream Forward Luncheon”

Schelton Assoumou invited to the 400 Foundation “Moving the Dream Forward Luncheon”

400 Foundation is a Not for profit, faith based foundation working to advance economic equality in New York City’s development and construction Industry. Faith Leaders are stepping up to address 400 years of economic injustice by promoting Jobs and opportunities for men and women of color in New York City development and construction industry.

400 Foundation has initiated a dialogue with city, state elected officials to remove burdensome, prohibitive regulations and provide technical assistance that would give entrepreneurs a path to success and give minority owned development and construction firms in New York City, greater access to capital.

Schelton Assoumou, the Managing Director of Brownstone NYC fully supports all activities initiated or sponsored by 400 Foundation. He was one of the invitees at the Nov.15,2019 “Moving the Dream Forward” Luncheon that was sponsored by Citigroup and held at Citi Group’s Global Headquarter in New York City.

This Luncheon was seeking to raise $3 Million for several foundation Programs such as:

  • A 400 Foundation Think Tank/Task Force
  • The 400 Skills Pipeline
  • The 400 Business Accelerator
  • The Faith based Development REIT (Real Estate Investment Trust)
  • Supporting the 400 Forward Legislative Push

The event was supported by Citigroup’s Crystal Mc Gary and Raymond J. McGuire and Real Estate Board of New York Jacqui Williams In 2020.

Based on his personal story, Schelton intends to launch “ASK Second Chance Foundation”(“ASK”) in 2020.

ASK will be a platform to execute recent criminal justice reform initiatives and create an execution vehicle to outreach programs such as the 400 Foundation, Marshall Project, STRIVE, etc. For example, ASK will provide job training, professional certificates and licenses for a new career, financial literacy, affordable housing for individuals dealing with the criminal justice.

Learn about a real community investment model here. 

Share:

Facebook
Twitter
Pinterest
LinkedIn
On Key

Related Posts