/** * Plugin Name: Pixelsz – Kernfuncties (V17.0) * Description: Whitelist-rechten gefixt. Kernfuncties & Beveiliging voor whitelist; niet-whitelist ziet E-mailtest, WhatsApp, Banner, Onderhoud. Activiteitenlog schakelbaar. Inclusief licenties, betaalde plugins/thema’s herkenning, onderhouds-takeover en plug-in vervangers. * Author: Pixelsz * Version: 16.7.2…Continue reading
// Add duplicate button to post/page list of actions. add_filter( ‘post_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); add_filter( ‘page_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); // Let’s make sure the function doesn’t already exist. if ( ! function_exists( ‘wpcode_snippet_duplicate_post_link’ ) ) { /** *…Continue reading
// Add duplicate button to post/page list of actions. add_filter( ‘post_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); add_filter( ‘page_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); // Let’s make sure the function doesn’t already exist. if ( ! function_exists( ‘wpcode_snippet_duplicate_post_link’ ) ) { /** *…Continue reading
// Zet WooCommerce nabestellingsmails uit add_filter( ‘woocommerce_email_enabled_backorder’, ‘__return_false’ );Continue reading
/** * Pixelsz – E-mailtest + vaste afzender en logo (200px) * – Gereedschap → Pixelsz E-mailtest * – Vaste logo-URL (niet wijzigbaar), 200px breed * – Schakelaar: afzendernaam + e-mail afdwingen voor ALLE mails (uit=grijs, aan=groen) */ if (!defined(‘ABSPATH’))…Continue reading
// Add duplicate button to post/page list of actions. add_filter( ‘post_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); add_filter( ‘page_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); // Let’s make sure the function doesn’t already exist. if ( ! function_exists( ‘wpcode_snippet_duplicate_post_link’ ) ) { /** *…Continue reading
add_action(‘woocommerce_admin_order_data_after_order_details’, ‘add_custom_shipping_method_backend’); function add_custom_shipping_method_backend($order_id) { // Manually get the order object $order = wc_get_order($order_id); if (!$order || !is_a($order, ‘WC_Order’)) { echo ‘ Error: Order is invalid. Please reload the page or check your setup. ‘; return; } ?> Royal Mail…Continue reading
class PIM_Metaboxes { public function __construct() { add_action( ‘admin_init’, array($this, ‘add_metaboxes’) ); add_action( ‘save_post’, array($this, ‘save_metabox_data’), 10 , 3 ); add_action( ‘admin_enqueue_scripts’, array($this, ‘category_enqueue_scripts’) ); add_action(‘pa_brand_add_form_fields’, array($this, ‘add_pa_brand_fields’), 10, 2 ); add_action(‘pa_brand_edit_form_fields’, array($this, ‘edit_pa_brand_fields’), 10, 2 ); // Voor pa_merk…Continue reading
add_filter( ‘manage_edit-product_columns’, ‘descriptions_product_column’, 10); add_filter( ‘manage_edit-product_sortable_columns’, ‘descriptions_product_sortable_column’, 10); add_action( ‘manage_product_posts_custom_column’, ‘descriptions_product_column_content’, 10, 2 ); function descriptions_product_column($columns){ $new_columns = []; foreach( $columns as $key => $column ){ $new_columns[$key] = $columns[$key]; if( $key == ‘price’ ) { $new_columns[‘short_description’] = ‘Korte omschrijving’; $new_columns[‘content’]…Continue reading
/** * Custom metaboxes voor WooCommerce producten */ add_action(‘add_meta_boxes’, function () { add_meta_box( ‘custom_metabox_highlighted_product’, ‘Uitgelicht product’, ‘highlighted_product_custom_metabox’, ‘product’, ‘normal’, ‘high’ ); add_meta_box( ‘custom_metabox_remarks’, ‘Beoordeling’, ‘product_remarks_custom_metabox’, ‘product’, ‘normal’, ‘high’ ); add_meta_box( ‘custom_metabox_video’, ‘Product video’, ‘product_video_custom_metabox’, ‘product’, ‘normal’, ‘high’ ); }); function…Continue reading