Tag: plugin-development

  • Limiting Featured Image Dimensions in WordPress

    Limiting Featured Image Dimensions in WordPress

    Discover how to limit image sizes for featured images based on pixel dimensions using JavaScript in the WordPress block editor. Block large images from being uploaded and display error notifications, preventing publishing until the image size meets the specified criteria. Implement this feature by enqueuing a simple `add_action()` during the `enqueue_block_editor_assets` hook.

  • Half Baked Idea: Limiting WordPress Image Upload Sizes

    Half Baked Idea: Limiting WordPress Image Upload Sizes

    Limit image upload size in WordPress media library by using the `wp_handle_upload_prefilter` filter. Implement a custom function to check and restrict the size of uploaded images. Utilize PHP code to set a maximum size limit and display an error message if the file exceeds it. Add this functionality to your WordPress site.

  • Cool WordPress Plugins: Embed Extended

    Cool WordPress Plugins: Embed Extended

    A plugin called Embed Extended transforms OpenGraph data into oEmbed data for WordPress, allowing for easy and visually appealing embeds in the block editor. It enhances the overall embedding experience on WordPress sites, making it simpler and more enjoyable for users.

  • Quick Tip: Export WordPress SQL output via WP-CLI

    Quick Tip: Export WordPress SQL output via WP-CLI

    Learn how to run custom SQL queries on your WordPress database using a small WP-CLI command. The command supports different output formats like table, CSV, JSON, and more. Plus, it includes a dry run option for safety. No need to rely on `wp db query` anymore!

  • Half-Baked Plugins: Embeds for Twitch and Gutenberg

    Half-Baked Plugins: Embeds for Twitch and Gutenberg

    Learn about Embeds for Twitch and Gutenberg, a WordPress plugin for embedding Twitch channels, videos, and clips as Gutenberg blocks. No plans for release, just for learning. Note: Clip functionality may be faulty. Explore Half-Baked Plugins for more experimental projects.

  • Wisps, a WordPress Plugin

    Wisps, a WordPress Plugin

    With Wisps, you can have code snippets similar to Gist, Pastebin, or similar code sharing sites. Using the built-in WordPress code editor, you can write snippets to post and share.

  • Debugging WordPress Hooks: Speed

    Debugging WordPress Hooks: Speed

    Learn how to measure the execution time of WordPress hooks with precision by capturing individual callback durations. Find out how to set up a timeline for targeted hooks and track start and stop times for each. Be cautious of potential overhead and conflicts with plugins using hook priorities. Utilize the provided PHP code to implement…

  • Page Generation Graph for WordPress

    Page Generation Graph for WordPress

    Discover how to create a personalized page generation graph for your website’s performance tracking. Compare different page types and delve into performance data through URL and time analysis. Find out how to enhance your site’s speed with the custom widgets and options provided. Check out the GitHub repository for the code.