WPCode Functions
/** * WPCode Admin UI Enhancements * – Skip library screen * – Set snippets per page * – Show active snippets first * – Adjust column widths and header wrapping * – Format Created column */ // 1. Skip…Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
/** * WPCode Admin UI Enhancements * – Skip library screen * – Set snippets per page * – Show active snippets first * – Adjust column widths and header wrapping * – Format Created column */ // 1. Skip…Continue reading
namespace ARI; class WPFusionHubSpotOnDemandSync { public function __constructor() { if(!is_admin()) { \add_action(‘wpf_woocommerce_payment_complete’, [$this, ‘handle_payment_complete’], 0, 2); } } public function log($msg, $level= ‘info’) { \wpf_log($level, \wpf_get_current_user_id(), $msg, [‘source’ => __CLASS__ . ‘::’ . __FUNCTION__]); } public function handle_payment_complete($order_id, $contact_id) {…Continue reading
/* ** This snippet controls who can access the WPcode plugin ** Added here to prevent people being able to bypass via WPCode SafeMode ** All other snippets are in the WPcode plugin */ add_filter( ‘map_meta_cap’, function ( $caps, $cap,…Continue reading
add_filter( ‘wpcode_snippet_output_html’, ‘do_shortcode’ );Continue reading