Skip to content

Commit 00b942b

Browse files
committedJul 28, 2022
fix 404 links
1 parent bd25b63 commit 00b942b

21 files changed

+30
-30
lines changed
 

‎legacy/v2/javascript-hooks.md

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+2-2
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

+1-1
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

+1-1
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

+2-2
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

+3-3
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

‎v4/javascript-hooks.md

+1-1
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/v4/rest-api/) JSON response.
1111

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

‎v4/post-and-page-fields.md

+1-1
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/v4/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/v4/forms/).
1313

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

‎v4/post-types-making.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,23 @@ 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](/docs/v4/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/v4/taxonomies/).
7272

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

7777
## Custom Fields
7878

79-
In the meta box, with dev mode on, TypeRocket gives supplies the callback you need to echo out [form](https://typerocket.com/docs/v4/forms/) fields.
79+
In the meta box, with dev mode on, TypeRocket gives supplies the callback you need to echo out [form](/docs/v4/forms/) fields.
8080

8181
![Typerocket meta box debug helper ](https://typerocket.com/wp-content/uploads/2015/07/typerocket-helper-metabox.png)
8282

‎v4/removing-the-editor-from-post-types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ add_action( 'init', function() {
3535

3636
### Support Title Only
3737

38-
If you are [registering a post type with TypeRocket](https://typerocket.com/post-types-stacked/) and only want the main title field you can use the `setArgument()` method instead.
38+
If you are [registering a post type with TypeRocket](https://typerocket.com/docs/v4/post-types) and only want the main title field you can use the `setArgument()` method instead.
3939

4040
```php
4141
$gallery = tr_post_type('Gallery');

‎v4/repeater-field.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ These methods are: `getFields()`, `setFields()` and `appendField()`.
4242

4343
## JavaScript Hook
4444

45-
You can also use the [javascript hooks](/docs/v3/javascript-hooks/) to do something when a repeater field group is added.
45+
You can also use the [javascript hooks](/docs/v4/javascript-hooks/) to do something when a repeater field group is added.

‎v5/admin-pages.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ tr_page('Api', 'view', 'APIs Page', $settings, $controller);
6464

6565
## Set Icon
6666

67-
To set an icon for the admin page use the `setIcon()` method. Use a [WordPress dashicon]([https://developer.wordpress.org/resource/dashicons/#heart](https://developer.wordpress.org/resource/dashicons/#heart)).
67+
To set an icon for the admin page use the `setIcon()` method. Use a [WordPress dashicon](https://developer.wordpress.org/resource/dashicons/#heart).
6868

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

‎v5/controllers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Because WordPress does not use an MVC architecture TypeRocket spoofs this design
104104

105105
## Dynamically Set Middleware
106106

107-
There are times when you do not want the global resource [middleware](/docs/v5/middleware/) stack to be called for specific methods of a controller by the [kernel](/docs/v5/kernel/). To dynamically set the middleware stack use the `__construct()` method on a controller and the `addMiddleware()` method.
107+
There are times when you do not want the global resource [middleware](/docs/v5/middleware/) stack to be called for specific methods of a controller by the [kernel](/docs/v5/middleware/#section-register-middleware). To dynamically set the middleware stack use the `__construct()` method on a controller and the `addMiddleware()` method.
108108

109109
For example, take a member controller where you want to have different middleware for the login methods.
110110

‎v5/curl-client.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Description: A simple cURL client.
99

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

12-
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.
12+
TypeRocket provides a simple [cURL](https://www.php.net/manual/en/book.curl.php) Http client. Take a look at sending a POST request.
1313

1414
```php
1515
$url = 'https://exmaple.com';

‎v5/forms.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ tr_form()->useOld()->useErrors();
755755

756756
`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).
757757

758-
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/v5/validator/#section-get-errors-redirect-on-error).
758+
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/v5/validator) [redirect errors](/docs/v5/validator/#section-get-errors-redirect-on-error).
759759

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

@@ -788,7 +788,7 @@ $form->disableAjax();
788788

789789
## Use TypeRocket REST API
790790

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

793793
```php
794794
$form->useRest();

‎v5/post-types-making.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ In this TypeRocket Pro tutorial, you will learn how to make an advanced WordPres
2020

2121
![Stacked pro post type](https://typerocket.com/wp-content/uploads/2020/01/docs-v1-post-type-example.png)
2222

23-
Before starting [install TypeRocket Pro](https://typerocket.com/docs/v5/plugin-install/).
23+
Before starting [install TypeRocket Pro](https://typerocket.com/docs/v5/install-via-plugin/).
2424

2525
Here is all the code it takes to create the listed features. We will break the code down into its parts and explain how each part works next.
2626

‎v5/theme-templating.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To understand the TypeRocket theme templating system lets walk through an exampl
1111

1212
## Template Routing & Controllers
1313

14-
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.
14+
WordPress uses what is called the [template hierarchy](https://developer.wordpress.org/themes/basics/template-hierarchy/) to route user http requests.
1515

1616
In WordPress, the theme templates do three things:
1717

@@ -26,7 +26,7 @@ On the other hand, TypeRocket's template router seamlessly integrates into the W
2626
- 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.
2727
- Takes your view out of the global scope, greatly reducing your chances of variable naming collisions, thus reducing the odds for bugs.
2828
- Affords you the opportunity to routes requests based on the HTTP methods of `POST`, `PUT`, `GET`, or `DELETE` in an eloquent way.
29-
- Empowers the practice of [the SOLID design principle]([https://en.wikipedia.org/wiki/SOLID](https://en.wikipedia.org/wiki/SOLID)).
29+
- Empowers the practice of [the SOLID design principle](https://en.wikipedia.org/wiki/SOLID).
3030

3131
Take a look at an example `single-post.php` file.
3232

@@ -162,7 +162,7 @@ class Post extends WPPost
162162
}
163163
```
164164

165-
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.
165+
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.
166166

167167
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.
168168

0 commit comments

Comments
 (0)
Please sign in to comment.