Fetch CLP Tool Data by Task ID

// Description: This code defines two functions to fetch tool data from the database based on a provided CLP Tool Task ID (clp_tool_task_id). It retrieves the tool_no and name_of_the_tool from the clp_test_table. Designed for integration with FlowMattic workflows to enable…Continue reading

FC – Duplicar posts y páginas

// Add duplicate button to post/page list of actions. add_filter( ‘post_row_actions’, ‘fc_wpcode_snippet_duplicate_post_link’, 10, 2 ); add_filter( ‘page_row_actions’, ‘fc_wpcode_snippet_duplicate_post_link’, 10, 2 ); // Let’s make sure the function doesn’t already exist. if ( ! function_exists( ‘fc_wpcode_snippet_duplicate_post_link’ ) ) { function fc_wpcode_snippet_duplicate_post_link(…Continue reading

Disable Admin Notices WordPress

/** * Disable Admin Notices WordPress * Description: Completely removes all admin notices from the WordPress dashboard, * including core WordPress notices and those added by plugins and themes. * @author Faisal Ahammad */ /** * Remove all notice actions…Continue reading

Change “Howdy Admin” in Admin Bar (copy)

function wpcode_snippet_replace_howdy( $wp_admin_bar ) { // Edit the line below to set what you want the admin bar to display intead of “Howdy,”. $new_howdy = ‘Welcome,’; $my_account = $wp_admin_bar->get_node( ‘my-account’ ); if ( ! isset( $my_account->title ) ) { return;…Continue reading

Duplicate Post/Page Link (copy)

// 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

WP – Auto-Remove Nonsense Admin Notices

function wp_auto_remove_admin_notices() { $notice_texts = [ // Elementor version update ‘The version was updated successfully!’, // Elementor data update ‘The database update process is now complete. Thank you for updating to the latest version!’, // WP Rocket enable/disable plugin ‘One…Continue reading

WP – Auto-Remove Nonsense Admin Notices

function wp_auto_remove_admin_notices() { $notice_texts = [ // Elementor version update ‘The version was updated successfully!’, // Elementor data update ‘The database update process is now complete. Thank you for updating to the latest version!’, // WP Rocket enable/disable plugin ‘One…Continue reading