Location: everywhere
PageTemplate_Universal – GRAVITY FLOW EMBED TEMPLATE
/** * ============================================================================ * GRAVITY FLOW EMBED TEMPLATE – Universal WPCode Snippet (SAFE VERSION) * ============================================================================ * * Version: 1.1.0 * Author: Portal Blueprint * Compatible with: Gravity Flow 2.8+, BuddyBoss, Divi, Elementor, Any Theme * * SAFETY FEATURES: *…Continue reading
How to Change CSV Export Delimiter
/** * Filters the delimiter used in CSV exports of form entries. * * @link https://wpforms.com/developers/change-csv-export-delimiter/ */ function wpf_dev_pro_admin_entries_export_configuration( $configuration ) { $configuration[ ‘csv_export_separator’ ] = ‘;’; return $configuration; } add_filter( ‘wpforms_pro_admin_entries_export_configuration’, ‘wpf_dev_pro_admin_entries_export_configuration’, 10, 1 );Continue reading
Hide Empty Categories for PP Grid Filter
add_filter( ‘pp_cg_filters_show_available_posts_terms’, ‘__return_true’ );Continue reading
Paystack Split Payments Integration with WC Vendors — Creating the Split Configuration
public function process_split_payment( $order ) { $vendors_due = WCV_Vendors::get_vendor_dues_from_order( $order, false ); $sub_accounts = array(); foreach ( $vendors_due as $vendor_id => $products ) { $_vendor_account = get_user_meta( $vendor_id, ‘_paystack_sub_account_code’, true ); $sub_accounts[] = array( ‘subaccount’ => $_vendor_account, ‘share’ => $calculated_share,…Continue reading
Paystack Split Payments Integration with WC Vendors — Calculating Vendor Splits
if ( wc_string_to_bool( get_option( ‘wcvendors_vendor_give_taxes’ ) ) ) { // Add tax fees to vendor total } else { // Add tax total to marketplace split } if ( wc_string_to_bool( get_option( ‘wcvendors_vendor_give_shipping’ ) ) { // Add shipping fees to…Continue reading
Paystack Split Payments Integration with WC Vendors — Saving the Vendor Sub-Account Code
update_user_meta( $user->ID, ‘_paystack_sub_account_code’, ‘ACCT_xxxxxxxxxxxxx’ );Continue reading
NS CALENDAR SHORTCODE
/** * Compliance Calendar – Dashboard Shortcodes v1.3 * * Shortcodes for displaying compliance data on frontend * Uses group_id (BuddyBoss) as primary identifier * * WPCODE SETTINGS: * – Code Type: PHP Snippet * – Location: Run Everywhere *…Continue reading
Untitled Snippet
function vertex_ai_generate_content($prompt) { $api_url = “https://us-central1-aiplatform.googleapis.com/v1/projects/{PROJE_ID}/locations/us-central1/publishers/google/models/gemini-pro:streamGenerateContent”; $access_token = ‘SİZİN_ACCESS_TOKEN’; // OAuth2 ile alınmalı $body = [ ‘contents’ => [ ‘role’ => ‘user’, ‘parts’ => [[‘text’ => $prompt]] ] ]; $response = wp_remote_post($api_url, [ ‘headers’ => [ ‘Authorization’ => ‘Bearer ‘…Continue reading
Disable Gutenberg Editor (use Classic Editor)
add_filter(‘gutenberg_can_edit_post’, ‘__return_false’, 5); add_filter(‘use_block_editor_for_post’, ‘__return_false’, 5);Continue reading