# WordPress Code Snippets

**URL:** https://forums.managingwp.io/c/wiki/wordpress-code-snippets/45.md

[Latest](https://forums.managingwp.io/latest.md) · [Categories](https://forums.managingwp.io/categories.md) · [Tags](https://forums.managingwp.io/tags.md)

---

## [About the WordPress Code Snippets category](https://forums.managingwp.io/t/about-the-wordpress-code-snippets-category/231)

<div class="topic-metadata">

**Author:** [@jtrask](https://forums.managingwp.io/u/jtrask)\
**Replies:** 0

</div>

---

## [Disable WordPress Core, Plugin and Theme Updates](https://forums.managingwp.io/t/disable-wordpress-core-plugin-and-theme-updates/263)

<div class="topic-metadata">

**Author:** [@jtrask](https://forums.managingwp.io/u/jtrask)\
**Replies:** 0\
**Last updated:** [February 5, 2024, 6:43pm UTC](https://forums.managingwp.io/t/disable-wordpress-core-plugin-and-theme-updates/263 "2024-02-05T18:43:14Z")

</div>

To stop automatic updates in WordPress, you can approach it in a few different ways depending on what specifically you want to prevent from updating automatically (WordPress core, plugins, themes). Here’s how to manage e…

---

## [Output WooCommerce Endpoint Content](https://forums.managingwp.io/t/output-woocommerce-endpoint-content/234)

<div class="topic-metadata">

**Author:** [@jtrask](https://forums.managingwp.io/u/jtrask)\
**Replies:** 0\
**Last updated:** [December 30, 2023, 11:49pm UTC](https://forums.managingwp.io/t/output-woocommerce-endpoint-content/234 "2023-12-30T23:49:42Z")

</div>

add\_shortcode( 'wc\_endpoint\_content', function { // begin output buffering ob\_start(); do\_action('woocommerce\_account\_endpoint'); // this is the end point name // end output buffering, grab the buffer con…

---

## [Show All Hooks on Page](https://forums.managingwp.io/t/show-all-hooks-on-page/233)

<div class="topic-metadata">

**Author:** [@jtrask](https://forums.managingwp.io/u/jtrask)\
**Replies:** 0\
**Last updated:** [December 30, 2023, 11:48pm UTC](https://forums.managingwp.io/t/show-all-hooks-on-page/233 "2023-12-30T23:48:23Z")

</div>

add\_action( 'all', 'th\_show\_all\_hooks' ); function th\_show\_all\_hooks( $tag ) { if(!(is\_admin())){ // Display Hooks in front end pages only $debug\_tags = array(); global $debug\_tags; if ( in\_array( $tag, $debug\_t…

---

## [Show All Short Codes Available](https://forums.managingwp.io/t/show-all-short-codes-available/232)

<div class="topic-metadata">

**Author:** [@jtrask](https://forums.managingwp.io/u/jtrask)\
**Replies:** 0\
**Last updated:** [December 30, 2023, 11:47pm UTC](https://forums.managingwp.io/t/show-all-short-codes-available/232 "2023-12-30T23:47:47Z")

</div>

// Create an options page to display the list of shortcodes in WordPress function diwp\_display\_shortcodes\_admin\_page() { add\_options\_page('All Active Shortcodes', 'Active Shortcodes', 'manage\_options', 'active-shor…
