Changes between Initial Version and Version 1 of Ticket #59224, comment 15
- Timestamp:
- 10/10/2023 09:21:17 AM (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #59224, comment 15
initial v1 17 17 Here's a rough, theoretical example, as a basic reference to give you a starting point. This is not meant to be a direct solution, but rather a guideline: 18 18 19 ```php19 <?php 20 20 function optimized_get_pages( $args = array() ) { 21 21 // ... your extra code/logic ... … … 28 28 return $query->posts; 29 29 } 30 ``` 30 ?> 31 31 32 32 Now you would use `optimized_get_pages()` instead of `get_pages()` in your theme or plugin, to utilize the more optimized version of the function.