Skip to content

Commit

Permalink
Merge pull request #2747 from timber/2745-link-checker-report
Browse files Browse the repository at this point in the history
2745 link checker report
  • Loading branch information
Levdbas committed May 26, 2023
2 parents 10c5acd + e7138c8 commit c11b8f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/v2/getting-started/a-single-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@ Timber::render('single.twig', $context);

Now, you can head on to the next chapter about [Post Archives](https://timber.github.io/docs/v2/getting-started/a-post-archive/).

If you want to know more about advanced methods to extend Timber, you can learn about it in the [Extending Timber Guide](https://timber.github.io/docs/guides/v2/extending-timber/).
If you want to know more about advanced methods to extend Timber, you can learn about it in the [Extending Timber Guide](https://timber.github.io/docs/v2/guides/extending-timber/).
2 changes: 1 addition & 1 deletion docs/v2/guides/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Check out the [Extending Twig Guide](https://timber.github.io/docs/v2/guides/ext

The concept of Timber (and templating engines like Twig in general) is to prepare all the data before you pass it to a template. Some functions in WordPress echo their output directly. We don’t want this, because the output of this function would be echoed before we call `Timber:render()` and appear before every else on your website. There are two ways to work around this:

- If you have a function where you want to bypass the output and instead save it as a string, so that you can add it to your context, use [`Helper::ob_function`](https://timber.github.io/docs/v2/reference/timber-helper/#ob-function).
- If you have a function where you want to bypass the output and instead save it as a string, so that you can add it to your context, use [`Helper::ob_function`](https://timber.github.io/docs/v2/reference/timber-helper/#ob_function).
- If you have a function that needs to be called exactly where you use it in your template (e.g. because it depends on certain global values) you can use `FunctionWrapper`:

```php
Expand Down

0 comments on commit c11b8f2

Please sign in to comment.