Today I Learned - Rocky Kev

Tagged “wordpress”

  1. TIL Static Blocks vs Dynamic Blocks

    A static block is a piece of content whose markup is known when the page is saved. The block saves its content and markup directly in the post content. A dynamic block is a piece of content whose markup and exact content are not known when the page is saved.

  2. TIL how to convert a shortcode to a WP block

    Traditionally, shortcodes were a way that plugin developers could provide users the ability to add specific plugin functionality anwhere on their site. But shortcodes are not very user friendly, nor was hunting down the relevant data you needed to render the correct data for the shortcode. Converting existing shortcodes to blocks provides a much greater user experience in all aspects.

  3. TIL how WordPress does serverside

    This isn't fully accurate, but for the means of describing server-side rendering, it's a good start!

  4. TIL about a a 12 year old bug that finally get's squashed.

    Someone noticed a potential optimization issue, and the technical debt piled on thanks to new features, encapsulating them for reusability, then calling them over and over.

  5. TIL about joke variables names in WordPress

    The vast majority of users are likely unaware of this joke unless they enjoy trawling through the 6,000+ lines of code in '/wp-includes/formatting.php'. There is a good chance that any developer who has looked up the 'wpautop()' function has stumbled upon it.

  6. TIL how to add custom styles in WP Blocks

    Justin Tadlock of WPTavern recreates a theme in block patterns.

  7. TIL you can share multiple users between WordPress installations

    You can use the same userbase for all your blogs on the same domain by defining the CUSTOM_USER_TABLE and optionally the CUSTOM_USER_META_TABLE constants to point to the same wp_your_blog_users and wp_your_blog_usermeta tables.

  8. TIL default template choices in WordPress

    This is a list of template pages that you can add in your custom-theme. It's a really nice feature that WordPress has built-in.

  9. TIL Blocks Vs Themes Style responsibility in WordPress

    In WordPress Full-site editing mode - Who manages CSS styles? Blocks or Themes? Well, a bit of both!

  10. TIL i18n

    Internationalization for WordPress

  11. TIL about WPINC and ABSPATH

    WPINC & ABSPATH -- If this file is called directly, abort.

  12. TIL Dashicons - WordPress' Official Icon Font

    WordPress has their own Icon Font.

  13. TIL How to Summon WordPress in random PHP files

    How to use WordPress Helper functions outside of WordPress

  14. TIL about using wpdb to insert data into the WordPress Database

    using wpdb to insert data into the WordPress Database

  15. TIL adding WP_HOME & WP_SITEURL

    You can add WP_HOME and WP_SITEURL to wp-config.php to override your WP database

  16. TIL about how to quickly add a WP Theme customizer Option

    You can do a lot of theme customization that auto-loads the page with every setting change. It's a really nice feature.

  17. TIL Wordpress guesses URLs

    If you write the URL of a page in a WordPress site incorrectly, WordPress will try to guess what page you were trying to access and “fix” your request so that you get the proper page and not a 404 error.

  18. TIL WordPress direct page ID

    WordPress Haxxs!

  19. TIL WordPress cache busting

    Importing scripts into WordPress causes it to cache. Cache bust them!

  20. TIL to Reset WP passwords

    Reset WP Passwords

  21. TIL You may not need WP Plugin

    No need to overload your WordPress

  22. TIL About various ways to declare WP Options/Settings Page

    After a lot of research, I found two approaches for writing WP option pages with code.

See all tags.