// associate a buddyboss group with a product function set_ox_subs_group_id($product_id,$group_id) { //create_new_oxsubs($product_id,$group_id); // add_post_meta( int $post_id, string $meta_key, mixed $meta_value, bool $unique = false ): int|false add_post_meta($product_id,’_social_group_id’, $group_id); return; }Continue reading
add_filter(‘the_generator’, ‘__return_empty_string’);Continue reading
add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://wpcode.com/wp-admin/images/wordpress-logo.svg’; $logo_width = 84; $logo_height = 84; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…Continue reading
// Disable core auto-updates add_filter( ‘auto_update_core’, ‘__return_false’ ); // Disa add_filter( ‘auto_update_theme’,Continue reading
/** * @link https://library.wpcode.com/snippet/e5wnp95d/ */ add_filter( ‘simpay_get_paymentintent_args_from_payment_form_request’, /** * @param array $paymentintent_args Arguments for PaymentIntent. * @param SimplePay\Core\Abstracts\Form $form Form instance. * @param array $form_data Form data generated by the client. * @param array $form_values Values of named fields in…Continue reading
/** * @link https://library.wpcode.com/snippet/ro8wgkow/ */ add_action( ‘simpay_before_payment_create’, /** * @param \WP_REST_Request WordPress REST API request. */ function( $request ) { // “Stripe Metadata Label” of the custom field. $custom_field_name = ‘Customer DOB’; // Retrieve form values. $fields = $request->get_param( ‘form_values’…Continue reading
/** * @link https://library.wpcode.com/editor/e5wn795d/ */ add_filter( ‘simpay_before_register_public_scripts’, /** * @var array $scripts * @return array $scripts */ function( $scripts ) { // Do not load any scripts unless the user is on one of these pages. if ( ! is_page(…Continue reading
/** * @link https://library.wpcode.com/snippet/ro8w3kow/ */ add_action( ‘simpay_form_before_form_bottom’, function() { ?> This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.Continue reading