// Add the duplicate link to action list for post_row_actions // for “post” and custom post types add_filter( ‘post_row_actions’, ‘rd_duplicate_post_link’, 10, 2 ); // for “page” post type add_filter( ‘page_row_actions’, ‘rd_duplicate_post_link’, 10, 2 ); function rd_duplicate_post_link( $actions, $post ) {…Continue reading
Delete Pending Donations Delete All Pending Donations ⚠️ WARNING: This will permanently delete ALL pending donations. This action cannot be undone. Please ensure you have backed up your database.Continue reading
if ( ! function_exists( ‘rd_swap_products_on_subscription’ ) ) { function rd_swap_products_on_subscription( $workflow ) { // Map old SKU => new SKU (simple products only; untested with variable/bundled) $sku_mapping = array( ‘9359769001492’ => ‘9359769002352’, // Nando’s Chicken Bowl ‘9359769002277’ => ‘9359769002369’, //…Continue reading
/** * Cortex E-commerce Products SEO Meta API v1.0 * REST Endpoints for WooCommerce Product & Product Category SEO Data * * For meta titles, descriptions, excerpts (short descriptions), focus keywords, * and social meta on WooCommerce products and product…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://www.xgimi.it/wp-content/uploads/2024/11/xgimi-ico.png’; $logo_width = 84; $logo_height = 84; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…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
add_filter( ‘xmlrpc_enabled’, ‘__return_false’ );Continue reading
function remove_my_action() { remove_action(‘wp_head’, ‘et_add_viewport_meta’); } function custom_et_add_viewport_meta(){ echo ‘‘; } add_action( ‘init’, ‘remove_my_action’); add_action( ‘wp_head’, ‘custom_et_add_viewport_meta’ );Continue reading
/** * Auto-link Site Name – Global Version * Pulls company name from Settings > General > Site Title * Pulls link title from Settings > General > Tagline */ function site_name_auto_links($content) { // Fire on all singular post types…Continue reading