Skip to content

Commit 00b942b

Browse files
committed
fix 404 links
1 parent bd25b63 commit 00b942b

21 files changed

+30
-30
lines changed

legacy/v2/javascript-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TypeRocket comes with two callbacks to help you extend the core JavaScript funct
77

88
## HTTP
99

10-
The HTTP callback is designed to let you modify and respond to the [REST API](https://typerocket.com/docs/rest-api/) JSON response.
10+
The HTTP callback is designed to let you modify and respond to the [REST API](https://typerocket.com/docs/v2/rest-api/) JSON response.
1111

1212
```javascript
1313
TypeRocket.httpCallbacks.push(function(response) {

legacy/v2/response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Description: Manage the HTTP JSON response for the REST API.
33

44
---
55

6-
The TypeRocket `Response` class is used to manage the HTTP JSON response for the [REST API](/docs/rest-api/). The `Response` is also used to declare the validity of the HTTP request with the method `setInvalid()`.
6+
The TypeRocket `Response` class is used to manage the HTTP JSON response for the [REST API](/docs/v2/rest-api/). The `Response` is also used to declare the validity of the HTTP request with the method `setInvalid()`.
77

88
When a `Response` is defined as "invalid" by the middleware, before the controller is called, the controller will be skipped.
99

legacy/v2/theme-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ define('TR_PLUGINS', 'seo|dev|theme-options');
1616

1717
Theme options are commonly used to manage the global elements of a WordPress theme's design. These elements could be as simple as the copy right information at the bottom of every page; to API keys for Google Maps or Facebook Sharing.
1818

19-
You can use any of the fields that come with the [forms api](https://typerocket.com/docs/forms/). This means you can have 18+ types of fields.
19+
You can use any of the fields that come with the [forms api](/docs/v2/forms/). This means you can have 18+ types of fields.
2020

2121
1. Text inputs
2222
2. Passwords

legacy/v3/javascript-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TypeRocket comes with two callbacks to help you extend the core JavaScript funct
77

88
## HTTP
99

10-
The HTTP callback is designed to let you modify and respond to the [REST API](https://typerocket.com/docs/rest-api/) JSON response.
10+
The HTTP callback is designed to let you modify and respond to the [REST API](/docs/v3/rest-api/) JSON response.
1111

1212
```javascript
1313
TypeRocket.httpCallbacks.push(function(response) {

legacy/v3/post-and-page-fields.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Custom fields are a necessity when your client needs to edit their own content.
99

1010
## Adding custom fields to posts
1111

12-
With just a few lines of code you can add the banner and subheading fields to the WordPress `post` post type using TypeRocket. All you need to do is create a [meta box](https://typerocket.com/docs/meta-boxes/) and add it to the `post` screen. Then you can define a content callback and create the fields you need using the [forms API](https://typerocket.com/docs/forms/).
12+
With just a few lines of code you can add the banner and subheading fields to the WordPress `post` post type using TypeRocket. All you need to do is create a [meta box](/docs/v3/meta-boxes/) and add it to the `post` screen. Then you can define a content callback and create the fields you need using the [forms API](/docs/v3/forms/).
1313

1414
Here you can add everything you need in your theme's `functions.php` file.
1515

legacy/v3/post-types-making.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ The settings you picked for the post type gives support for just the title field
6060

6161
## Custom MetaBox
6262

63-
Add some custom fields to `tr_team`. You want them in a [meta box](https://typerocket.com/docs/meta-boxes/). Add a meta box to the post type first.
63+
Add some custom fields to `tr_team`. You want them in a [meta box](https://typerocket.com/docs/v3/meta-boxes/). Add a meta box to the post type first.
6464

6565
```php
6666
tr_meta_box('Team Details')->apply($team);
6767
```
6868

6969
## Custom Taxonomy
7070

71-
Do the same with a [taxonomy](https://typerocket.com/docs/taxonomies/).
71+
Do the same with a [taxonomy](https://typerocket.com/docs/v3/taxonomies/).
7272

7373
```php
7474
tr_taxonomy('Department')->apply($team);

v1/admin-pages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ To set an icon for the admin page use the `setIcon()` method.
6565
$seat_index->setIcon('plane');
6666
```
6767

68-
Or, a [WordPress dashicon]([https://developer.wordpress.org/resource/dashicons/#heart](https://developer.wordpress.org/resource/dashicons/#heart)).
68+
Or, a [WordPress dashicon](https://developer.wordpress.org/resource/dashicons/#heart).
6969

7070
```php
7171
$seat_index->setIcon('dashicons-heart');

v1/curl-client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Description: A simple cURL client.
77

88
**IMPORTANT**: You must have the PHP cURL extension installed to use this class.
99

10-
TypeRocket provides a simple [cURL]([https://www.php.net/manual/en/book.curl.php](https://www.php.net/manual/en/book.curl.php)) Http client. Take a look at sending a POST request.
10+
TypeRocket provides a simple [cURL](https://www.php.net/manual/en/book.curl.php) Http client. Take a look at sending a POST request.
1111

1212
```php
1313
$url = 'https://exmaple.com';

v1/forms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ tr_form()->useOld()->useErrors();
740740

741741
`useErrors()` looks for the cookie `tr_redirect_errors` and the `tr_redirect_errors` WordPress transient. The `tr_redirect_errors` cookie and transient can only be accessed once (after this is will be deleted).
742742

743-
If the `tr_redirect_errors` cookie is found the form will use the field errors within that cookie to display inline field errors. The best way to set the `tr_redirect_errors` cookie and apply fields to that cookie is to use [HTTP fields](docs/v1/http-fields) or a [validator](/docs/vs/validator) [redirect errors](/docs/v1/validator/#section-get-errors-redirect-on-error).
743+
If the `tr_redirect_errors` cookie is found the form will use the field errors within that cookie to display inline field errors. The best way to set the `tr_redirect_errors` cookie and apply fields to that cookie is to use [HTTP fields](/docs/v1/http-fields) or a [validator](/docs/v1/validator) [redirect errors](/docs/v1/validator/#section-get-errors-redirect-on-error).
744744

745745
If you do not want to use cookies for the validation, you can provide an override array.
746746

@@ -773,7 +773,7 @@ $form->disableAjax();
773773

774774
## Use TypeRocket REST API
775775

776-
You can tell forms to use the [TypeRocket REST API](https://typerocket.com/docs/v1/json-api/) using the `useRest()` method. This method enables AJAX mode for the form as well.
776+
You can tell forms to use the [TypeRocket REST API](https://typerocket.com/docs/v1/rest-api/) using the `useRest()` method. This method enables AJAX mode for the form as well.
777777

778778
```php
779779
$form->useRest();

v1/theme-templating.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To understand the TypeRocket theme templating system lets walk through an exampl
99

1010
## Template Routing & Controllers
1111

12-
WordPress uses what is called the [template hierarchy]([https://developer.wordpress.org/themes/basics/template-hierarchy/](https://developer.wordpress.org/themes/basics/template-hierarchy/)) to route user http requests.
12+
WordPress uses what is called the [template hierarchy](https://developer.wordpress.org/themes/basics/template-hierarchy/) to route user http requests.
1313

1414
In WordPress, the theme templates do three things:
1515

@@ -24,7 +24,7 @@ On the other hand, TypeRocket's template router seamlessly integrates into the W
2424
- WordPress core templates only allow for 400 error handling. The template router allows for 500, 401, 403, or any other error templates to be used.
2525
- Takes your view out of the global scope, greatly reducing your chances of variable naming collisions, thus reducing the odds for bugs.
2626
- Affords you the opportunity to routes requests based on the HTTP methods of `POST`, `PUT`, `GET`, or `DELETE` in an eloquent way.
27-
- Empowers the practice of [the SOLID design principle]([https://en.wikipedia.org/wiki/SOLID](https://en.wikipedia.org/wiki/SOLID)).
27+
- Empowers the practice of [the SOLID design principle](https://en.wikipedia.org/wiki/SOLID).
2828

2929
Take a look at an example `single-post.php` file.
3030

@@ -128,7 +128,7 @@ class Post extends WPPost
128128
}
129129
```
130130

131-
These methods allow us to access [the WordPress template tags for the post]([https://developer.wordpress.org/themes/references/list-of-template-tags/#post-tags](https://developer.wordpress.org/themes/references/list-of-template-tags/#post-tags)). You can add as many of these as your site needs.
131+
These methods allow us to access [the WordPress template tags for the post](https://developer.wordpress.org/themes/references/list-of-template-tags/#post-tags). You can add as many of these as your site needs.
132132

133133
The main benefit of using models over the WordPress loops, in our view, will be the ability to encapsulate the logic of our views into the model.
134134

0 commit comments

Comments
 (0)