custom_admin_css_for_posts_list()

function custom_admin_css_for_posts_list() { global $pagenow; // Check if we are on the posts listing page if ($pagenow == ‘edit.php’ && (empty($_GET[‘post_type’]) || $_GET[‘post_type’] == ‘post’)) { wp_register_style(‘custom_wp_admin_css’, false); wp_enqueue_style(‘custom_wp_admin_css’); $custom_css = ” #title { width: 400px !important; /* Adjust the…Continue reading

Elementor’s posts query (Shows only Vehicles and Tools categories)

add_action( ‘elementor/query/vehicles_tools_query’, function( $query ) { // Get the term IDs for ‘vehicles’ and ‘tools’ categories by their slugs $term_ids = get_terms([ ‘taxonomy’ => ‘category’, ‘slug’ => [‘vehicles’, ‘tools’], ‘fields’ => ‘ids’, ‘hide_empty’ => true, ]); if ( !empty($term_ids) &&…Continue reading

Elementor’s posts query (exclude Vehicles and Tools categories)

add_action( ‘elementor/query/custom_exclude_vehicle_tool_subcats’, function ( $query ) { // Find the term IDs for ‘vehicles’ and ‘tools’ categories. $parent_categories = get_terms([ ‘taxonomy’ => ‘category’, ‘slug’ => [‘vehicles’, ‘tools’], ‘fields’ => ‘ids’, ]); $excluded_subcategories = []; if ( !is_wp_error( $parent_categories ) )…Continue reading

ConexionBD

// Código PHP echo “Se ejecutó el SEND\n”; // Database hostname define( ‘DBHOST’, ‘localhost:3306’ ); // Database username define( ‘DB_USER’, ‘wp_j4cbx’ ); // Database password define( ‘DB_PASSWORD’, ‘uDFmf0E~?a2YgVj0’ ); // Nombre de la BD define( ‘DB_NAME’, ‘wp_n5p5f’ ); $conexion =…Continue reading

ConexionBD

// Código PHP echo “Se ejecutó el SEND\n”; // Database hostname define( ‘DBHOST’, ‘localhost:3306’ ); // Database username define( ‘DB_USER’, ‘wp_j4cbx’ ); // Database password define( ‘DB_PASSWORD’, ‘uDFmf0E~?a2YgVj0’ ); // Nombre de la BD define( ‘DB_NAME’, ‘wp_n5p5f’ ); $conexion =…Continue reading

Duplicate Posts and Pages (copy) (copy) (copy) (copy)

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

Duplicate Posts and Pages (copy) (copy) (copy)

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

Duplicate Posts and Pages (copy) (copy)

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

Duplicate Posts and Pages (copy)

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