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

Gravity Flow Sync

/** * Gravity Flow Steps to CPT Mirror * Creates/updates a gf_workflow_step post for each Gravity Flow step * Updated to extract key settings into separate fields for better CSV export */ defined( ‘ABSPATH’ ) || exit; // Add manual…Continue reading

Gravity Flow ACF

/** * Registers the “Gravity Flow Step Meta” field group on gf_workflow_step posts. * Updated to store key settings in separate fields for better CSV export */ defined( ‘ABSPATH’ ) || exit; add_action( ‘acf/init’, function () { if ( !…Continue reading

Gravity Flow CPT

/** * Plugin Name: Gravity Flow Step CPT * Description: Registers post-type `gf_workflow_step` to mirror each Gravity Flow step as a post for reporting * Author: Next Step Consulting * Version: 1.0 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘init’,…Continue reading

Navegación personalizada páginas específicas

function eva_custom_navigation_links() { // Cultura → solo flecha siguiente if ( is_page(‘cultura’) ) { echo ‘ Siguiente » ‘; } // Herramientas → anterior y siguiente personalizados if ( is_page(‘herramientas’) ) { echo ‘ « Anterior | Siguiente » ‘;…Continue reading

Entry Count

add_shortcode(‘entry-count’,’my_entry_count’); function my_entry_count($atts){ global $user_ID; $ids = FrmDb::get_col( ‘frm_items’, array(‘user_id’ => $user_ID)); return count($ids); }Continue reading

Markdown URLs for LLMs

/** * After enabling this snippet, go to Settings > Permalinks and click “Save Changes” * Configure the $enabled_post_types array to specify which post types should support .md URLs */ $enabled_post_types = [ ‘post’, ‘page’ ]; // Add rewrite rule…Continue reading