Elementor Logo Download Angie

Angie prompt library

WordPress admin snippets

Customize your WP Admin experience – add personalized dashboard views, theme the entire admin interface, and create dedicated settings sections.

Publishing activity overview dashboard widget

Create a Dashboard widget for the main WordPress Dashboard page that shows publishing activity for all content types (pages, posts, Elementor, products…) in a Git-style activity view. This is site-wide activity, not per specific user.

Site Speed Test dashboard widget

Create a WordPress Dashboard widget that shows a website speed test with a nice score display like Google’s. Include a “Run test now” button, and also run the test automatically once a day. Display the date and time of the last test shown in the widget.

WooCommerce marketing HUD

Create a custom WordPress Dashboard Widget called ‘Marketing Intelligence HUD’.
Concept: A clean, executive-summary style dashboard widget for a wine store that shows where customers are located and how they found the store.
Behavior:

  1. Geography: Display a list of the Top 5 Cities and Top 3 Countries based on total revenue from recent orders.
  2. Traffic Sources: Show a simple breakdown of traffic sources (Organic, Social, Email, etc.) using WooCommerce attribution data.
  3. Data Retrieval: Fetch the last 25 orders to keep performance fast.
  4. Data Display: Use wp_strip_all_tags( wc_price( ... ) ) to show revenue amounts cleanly as plain text without HTML tags.

Controls:

  • Tabs: Simple toggle buttons to switch between “Geography” and “Traffic Sources” views.
  • Export: A button to download the data as a CSV file.

Technical Requirements:

  • Caching: Cache the data for 15 minutes using a WordPress Transient to prevent dashboard slowdowns.
  • Role: Only visible to Administrators.
  • Styling: Modern, spaced-out layout matching the WordPress admin aesthetic.

Performance: Ensure lightweight queries and efficient data processing.

WooCommerce Orders dashboard widget

Create a custom WordPress Dashboard Widget called ‘Order Processing Monitor’.
Concept: A dedicated dashboard widget to monitor order statuses with a focus on identifying “Revenue at Risk” vs Success by calculating totals instead of just order counts.
Behavior:

  1. Time Range: Analyze orders from the last 7 days.
  2. Revenue Totals: Calculate the total dollar amount for:
  3. Completed (Completed + Processing)
  4. Pending Action (Pending + On-Hold)
  5. Revenue at Risk (Failed + Cancelled)
  6. Visuals: Display cards for each status with:
  7. An icon (Checkmark for success, Clock for pending, Warning for risk).
  8. The total revenue amount for that status.
  9. A progress bar showing the percentage of total revenue.
  10. Risk Alert: If “Revenue at Risk” > 0, style the card with a red background/border and bold red text to highlight the financial impact.
  11. Action Button: Include a “View At-Risk Orders” button that links to the order list filtered by failed,cancelled,pending,on-hold.

Technical Requirements:

  • Role: Only visible to users with manage_woocommerce capability.
  • Data Handling: Use wc_get_orders() and get_total() to sum revenue. Use wp_strip_all_tags( wc_price( ... ) ) to display currency values cleanly.
  • Caching: Cache the results for 5 minutes using a WordPress Transient for performance.
  • Styling: Use a modern card-based layout with a clean grid system.

WooCommerce Inventory HUD

Create a custom WordPress Dashboard Widget called ‘Live Inventory HUD’.
Concept: A streamlined inventory monitor for WooCommerce that provides an instant view of stock levels and allows for a one-click live CSV export. It should prioritize “Low Stock” items to help with reordering.
Behavior:
Live Stock Monitoring: Display a table of all products (including variations) with their current stock quantity.
Low Stock Highlighting: Use a conditional check (e.g., if stock < 5) to highlight the row in red so I can see what’s running low immediately.
Instant CSV Export: Include a button that, when clicked, generates and downloads a CSV file containing: Product Name, SKU, Stock Level, and Price.
Real-time Refresh: Include a “Refresh” button that updates the data without refreshing the whole WordPress dashboard page.
Controls (The Widget UI):
Stock Threshold Slider: A simple setting to define what count qualifies as “Low Stock” (default to 5).
Search Bar: A small filter at the top to search the table by Product Name or SKU.
Export Button: A prominent “Export to CSV” button.
Technical Requirements:
Data Sourcing: Use wc_get_products() to pull the inventory data rather than raw SQL for better compatibility.
Hook: Register the widget via wp_add_dashboard_widget.
Export Logic: Use JavaScript (Blob or Data URI) to handle the CSV generation on the fly so it doesn’t strain the server.
Security: Ensure the widget is only visible to shop_manager or administrator roles.

Inline product table

Create a WooCommerce product management dashboard for the WordPress admin. It should add a new menu page titled ‘Inline Products’ with a store icon. The UI must feature a searchable and sortable table of products with inline editing for prices and a modal window for viewing product descriptions. The design should be modern, using the Inter font and including fade-in animations.

Admin Favorites

Create a PHP and JavaScript snippet to build a ‘Dynamic Admin Favorites’ system. It should function as follows:

The Menu: Add a top-level WP Admin menu item labeled ‘Favorites’.

The ‘Add’ Button: Use the admin_enqueue_scripts hook to inject a small ‘Add to Favorites’ button (using a star dashicon) next to the page title (the .wp-heading-inline or h1) on every admin page.

The Logic: When the star is clicked, use AJAX to save the current page’s URL and Title to the current user’s ‘user_meta’.

The Display: The ‘Favorites’ menu should dynamically list all saved pages as sub-menu items.

Management: Include a simple ‘Clear Favorites’ option at the bottom of the list.

Please ensure the code includes the necessary wp_ajax actions and uses get_user_meta to keep the favorites unique to each logged-in user.

Create new role

Using code, create a new user role called [role name] with capabilities to [describe what they should be able to do, e.g., “edit posts but not publish them” or “manage products but not access settings”]

Rollback Plugins

Using code, add a rollback button to my themes and plugins so I can revert back and forth to previous and current version

Create child theme

Using code, add a “Create Child Theme” button to the themes page that automatically generates a child theme from any installed theme with one click

Rollback theme

Using code, add a rollback button to my themes and plugins so I can revert back and forth to previous and current version

Show featured images

Add a featured image thumbnail column at the end of the posts list and enable quick editing to upload or select featured images without opening the full editor

Add meta field

Add a custom meta description field to all posts and pages that controls what text appears in Google search results and social media previews. Configure the featured image to automatically be used as the preview image for social sharing on Facebook, WhatsApp, and other platforms.

Auto-Tag Posts Based on Content

Using code snippet, add a custom functionality to my WordPress site that when you click on a button it automatically adds relevant tags to posts based on frequently used keywords in the content when the post is published.

Duplicate Post/Page Function

Using code snippet, add custom functionality to my WordPress site that adds a “Duplicate” button to posts and pages in the admin list, allowing me to quickly clone any post or page with one click.

Add Related Posts

Using code snippet, add custom functionality to my WordPress site that displays [X] related posts at the end of each blog post based on shared categories or tags

Add Custom Dashboard Widget

Using code snippet, add custom functionality to my WordPress site that adds a custom dashboard widget showing [recent orders/latest signups/site statistics/custom message] visible only to administrators.

Limit Post Revisions

Using code snippet, add custom functionality to my WordPress site that limits the number of post revisions stored in the database to [X] revisions per post to reduce database bloat.

Add Custom Post Type

Using code snippet, add custom functionality to my WordPress site that creates a custom post type called “[Post Type Name]” (e.g., Portfolio, Testimonials, Team Members) with custom labels, icons, and archive page support.

Disable Comments on Old Posts

Using code snippet, add custom functionality to my WordPress site that automatically disables comments on posts older than [X] days to prevent spam on older content.

Custom Excerpt Length

Using code snippet, add custom functionality to my WordPress site that changes the default excerpt length from 55 words to [X] words and replaces the […] with a custom “Read more” link.

Auto-Add Featured Image to Posts

Using code snippet, add custom functionality to my WordPress site that automatically sets the first image in a post as the featured image if no featured image has been manually selected.

Custom Login Logo

Using code snippet, add custom functionality to my WordPress site that replaces the default WordPress logo on the login page with my custom logo and changes the logo link to point to my homepage instead of WordPress.org.

Estimated Reading Time

Using code snippet, add custom functionality to my WordPress site that calculates and displays estimated reading time at the top of each blog post based on word count (assuming 200 words per minute).

Dynamic Copyright Year

Using code snippet, add custom functionality to my WordPress site that automatically updates the copyright year in the footer to always display the current year without manual updates.

Auto-Redirect Based on User Role

Using code snippet, add custom functionality to my WordPress site that automatically redirects users to different pages based on their role after login – subscribers go to /dashboard, customers go to /my-account, and administrators go to /wp-admin.