Miniatyrbilde

/****** Add Thumbnails in Manage Posts/Pages List ******/ if ( !function_exists(‘AddThumbColumn’) && function_exists(‘add_theme_support’) ) { // for post and page add_theme_support(‘post-thumbnails’, array( ‘post’, ‘page’ ) ); function AddThumbColumn($cols) { $cols[‘thumbnail’] = __(‘Thumbnail’); return $cols; } function AddThumbValue($column_name, $post_id) { $width…Continue reading

Mytestsnippet

global $wpdb; $table_name = $wpdb->prefix . ‘myfirst’; // Use prefix for security $results = $wpdb->get_results(“SELECT * FROM $table_name”); if ( ! empty( $results ) ) { echo ‘ ‘; foreach ( $results as $row ) { echo ‘ ‘; echo…Continue reading

VitiligoMart AI Discovery Stack

/** * VitiligoMart AI Discovery Stack * * 1. Appends AI bot Allow directives to robots.txt * 2. Serves a curated /llms.txt that overrides Rank Math’s auto-generated version * * Update bot list and llms.txt content directly in this snippet.…Continue reading

Paramount Site

add_shortcode(‘paramount_site’, function () { ob_start(); ?> PARAMOUNT CONTACT PARTNERS Revenue Appointments Contact Let’s Talk → DTC Retention · Payment Recovery · Reactivation We Don’t RunCall CentersWe Build Revenue Engines. Most companies lose money in the exact place they should be…Continue reading

Tiered Affiliate Rates — Per-Group Tier Structures

add_filter( ‘affwp_get_affiliate_rate’, function( $rate, $affiliate_id, $type ) { // Respect individual rates — if the affiliate has one set manually, skip group tiers. $affiliate_rate = affiliate_wp()->affiliates->get_column( ‘rate’, $affiliate_id ); if ( ! empty( $affiliate_rate ) ) { return $rate; }…Continue reading

Rest API Custom Field

add_action( ‘init’, function() { register_meta( ‘post’, ‘_wpai_unique_key’, array( ‘type’ => ‘string’, // ‘string’, ‘number’, ‘boolean’, ‘integer’, ‘array’, or ‘object’ ‘single’ => true, ‘show_in_rest’ => true, // Required to show in API ) ); });Continue reading