Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #59224, comment 15


Ignore:
Timestamp:
10/10/2023 09:21:17 AM (20 months ago)
Author:
dilip2615
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59224, comment 15

    initial v1  
    1717Here'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:
    1818
    19 ```php
     19<?php
    2020function optimized_get_pages( $args = array() ) {
    2121    // ... your extra code/logic ...
     
    2828    return $query->posts;
    2929}
    30 ```
     30?>
    3131
    3232Now you would use `optimized_get_pages()` instead of `get_pages()` in your theme or plugin, to utilize the more optimized version of the function.