Version Description
- WPML Test. thanks keita_kobayashi !
Download this release
Release Info
Developer | Toro_Unit |
Plugin | Custom Post Type Permalinks |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.1.0
- .svnignore +18 -0
- CPTP/Module/Permalink.php +2 -2
- custom-post-type-permalinks.php +2 -2
- readme.md +35 -5
- readme.txt +7 -4
.svnignore
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.DS_Store
|
2 |
+
.git
|
3 |
+
.gitignore
|
4 |
+
.travis.yml
|
5 |
+
Gruntfile.js
|
6 |
+
LINGUAS
|
7 |
+
Makefile
|
8 |
+
README.md
|
9 |
+
_site
|
10 |
+
bin
|
11 |
+
composer.json
|
12 |
+
composer.lock
|
13 |
+
node_modules
|
14 |
+
npm-debug.log
|
15 |
+
package.json
|
16 |
+
phpunit.xml
|
17 |
+
tests
|
18 |
+
vendor
|
CPTP/Module/Permalink.php
CHANGED
@@ -14,8 +14,8 @@ class CPTP_Module_Permalink extends CPTP_Module {
|
|
14 |
|
15 |
|
16 |
public function add_hook() {
|
17 |
-
add_filter( 'post_type_link', array( $this, 'post_type_link' ),
|
18 |
-
add_filter( 'term_link', array( $this, 'term_link' ),
|
19 |
add_filter( 'attachment_link', array( $this, 'attachment_link' ), 20, 2 );
|
20 |
}
|
21 |
|
14 |
|
15 |
|
16 |
public function add_hook() {
|
17 |
+
add_filter( 'post_type_link', array( $this, 'post_type_link' ), 0, 4 );
|
18 |
+
add_filter( 'term_link', array( $this, 'term_link' ), 0, 3 );
|
19 |
add_filter( 'attachment_link', array( $this, 'attachment_link' ), 20, 2 );
|
20 |
}
|
21 |
|
custom-post-type-permalinks.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.torounit.com
|
|
5 |
Description: Add post archives of custom post type and customizable permalinks.
|
6 |
Author: Toro_Unit
|
7 |
Author URI: http://www.torounit.com/plugins/custom-post-type-permalinks/
|
8 |
-
Version: 1.0
|
9 |
Text Domain: cptp
|
10 |
License: GPL2 or later
|
11 |
Domain Path: /language/
|
@@ -17,7 +17,7 @@ Domain Path: /language/
|
|
17 |
* Custom Post Type Permalinks
|
18 |
*
|
19 |
* @package Custom_Post_Type_Permalinks
|
20 |
-
* @version 1.0
|
21 |
*
|
22 |
*/
|
23 |
|
5 |
Description: Add post archives of custom post type and customizable permalinks.
|
6 |
Author: Toro_Unit
|
7 |
Author URI: http://www.torounit.com/plugins/custom-post-type-permalinks/
|
8 |
+
Version: 1.1.0
|
9 |
Text Domain: cptp
|
10 |
License: GPL2 or later
|
11 |
Domain Path: /language/
|
17 |
* Custom Post Type Permalinks
|
18 |
*
|
19 |
* @package Custom_Post_Type_Permalinks
|
20 |
+
* @version 1.1.0
|
21 |
*
|
22 |
*/
|
23 |
|
readme.md
CHANGED
@@ -1,11 +1,20 @@
|
|
1 |
# Custom Post Type Permalinks
|
2 |
Donate link: http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV
|
|
|
3 |
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
## Description
|
7 |
|
8 |
-
Custom Post Type Permalinks
|
9 |
|
10 |
Change custom taxonomy archive's permalink to "example.org/post_type/taxonomy_name/term_slug". Can disable this fix.
|
11 |
|
@@ -19,13 +28,13 @@ Donation: Please send amazon.co.jp Gift to donate[at]torounit.com.
|
|
19 |
|
20 |
* French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)
|
21 |
* Japanese(ja) - [Toro_Unit](http://www.torounit.com/)
|
22 |
-
* Russian(ru_RU) - [Olart](http://olart.ru)
|
23 |
|
24 |
## Setting on Code
|
25 |
|
26 |
Example:
|
27 |
|
28 |
-
|
29 |
register_post_type( 'foo',
|
30 |
array(
|
31 |
"public" => true,
|
@@ -36,7 +45,7 @@ register_post_type( 'foo',
|
|
36 |
"cptp_permalink_structure" => "%post_id%"
|
37 |
)
|
38 |
);
|
39 |
-
|
40 |
|
41 |
|
42 |
## Installation
|
@@ -56,6 +65,27 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
56 |
|
57 |
## Changelog
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
### 1.0.0
|
60 |
|
61 |
* Set Permalink enable register_post_type.
|
1 |
# Custom Post Type Permalinks
|
2 |
Donate link: http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV
|
3 |
+
License: GPLv2 or Later
|
4 |
|
5 |
+
Edit the permalink of custom post type.
|
6 |
+
|
7 |
+
|
8 |
+
[![Build Status](https://travis-ci.org/torounit/custom-post-type-permalinks.svg)](https://travis-ci.org/torounit/custom-post-type-permalinks)
|
9 |
+
[![](https://img.shields.io/wordpress/plugin/dt/custom-post-type-permalinks.svg)](https://wordpress.org/plugins/custom-post-type-permalinks/)
|
10 |
+
[![](https://img.shields.io/wordpress/v/custom-post-type-permalinks.svg)](https://wordpress.org/plugins/custom-post-type-permalinks/)
|
11 |
+
[![](https://img.shields.io/wordpress/plugin/r/custom-post-type-permalinks.svg)](https://wordpress.org/plugins/custom-post-type-permalinks/)
|
12 |
+
|
13 |
+
[![](http://www.torounit.com/wp-content/uploads/2011/11/banner-772x250.png)](https://wordpress.org/plugins/custom-post-type-permalinks/)
|
14 |
|
15 |
## Description
|
16 |
|
17 |
+
Custom Post Type Permalinks allow you edit the permalink structure of custom post type.
|
18 |
|
19 |
Change custom taxonomy archive's permalink to "example.org/post_type/taxonomy_name/term_slug". Can disable this fix.
|
20 |
|
28 |
|
29 |
* French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)
|
30 |
* Japanese(ja) - [Toro_Unit](http://www.torounit.com/)
|
31 |
+
* Russian(ru_RU) - [Olart](http://olart.ru), [Natali_Z](https://profiles.wordpress.org/natali_z)
|
32 |
|
33 |
## Setting on Code
|
34 |
|
35 |
Example:
|
36 |
|
37 |
+
`
|
38 |
register_post_type( 'foo',
|
39 |
array(
|
40 |
"public" => true,
|
45 |
"cptp_permalink_structure" => "%post_id%"
|
46 |
)
|
47 |
);
|
48 |
+
`
|
49 |
|
50 |
|
51 |
## Installation
|
65 |
|
66 |
## Changelog
|
67 |
|
68 |
+
### 1.1.0
|
69 |
+
|
70 |
+
* WPML Test. thanks [keita_kobayashi](https://profiles.wordpress.org/keita_kobayashi) !
|
71 |
+
|
72 |
+
### 1.0.5
|
73 |
+
|
74 |
+
* admin bug fix. thanks [ixkaito](https://profiles.wordpress.org/ixkaito) !
|
75 |
+
* Translation Update Thanks [Natali_Z](https://profiles.wordpress.org/natali_z) !
|
76 |
+
|
77 |
+
### 1.0.4
|
78 |
+
|
79 |
+
* option bug fix.
|
80 |
+
|
81 |
+
### 1.0.3
|
82 |
+
|
83 |
+
* add category rule, if only attached category to post type.
|
84 |
+
|
85 |
+
### 1.0.2
|
86 |
+
|
87 |
+
* category slug bug fix.
|
88 |
+
|
89 |
### 1.0.0
|
90 |
|
91 |
* Set Permalink enable register_post_type.
|
readme.txt
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
=== Custom Post Type Permalinks ===
|
2 |
-
Contributors: Toro_Unit,inc2734,ixkaito
|
3 |
Donate link: http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV
|
4 |
Tags: permalink,permalinks,custom post type,custom taxonomy,cms
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 1.0
|
8 |
License: GPLv2 or Later
|
9 |
|
10 |
-
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
Custom Post Type Permalinks
|
15 |
|
16 |
Change custom taxonomy archive's permalink to "example.org/post_type/taxonomy_name/term_slug". Can disable this fix.
|
17 |
|
@@ -61,6 +61,9 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
64 |
= 1.0.5 =
|
65 |
* admin bug fix. thanks [ixkaito](https://profiles.wordpress.org/ixkaito) !
|
66 |
* Translation Update Thanks [Natali_Z](https://profiles.wordpress.org/natali_z) !
|
1 |
=== Custom Post Type Permalinks ===
|
2 |
+
Contributors: Toro_Unit,inc2734,ixkaito,keita_kobayashi
|
3 |
Donate link: http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV
|
4 |
Tags: permalink,permalinks,custom post type,custom taxonomy,cms
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 1.1.0
|
8 |
License: GPLv2 or Later
|
9 |
|
10 |
+
Edit the permalink of custom post type.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
Custom Post Type Permalinks allow you edit the permalink structure of custom post type.
|
15 |
|
16 |
Change custom taxonomy archive's permalink to "example.org/post_type/taxonomy_name/term_slug". Can disable this fix.
|
17 |
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 1.1.0 =
|
65 |
+
* WPML Test. thanks [keita_kobayashi](https://profiles.wordpress.org/keita_kobayashi) !
|
66 |
+
|
67 |
= 1.0.5 =
|
68 |
* admin bug fix. thanks [ixkaito](https://profiles.wordpress.org/ixkaito) !
|
69 |
* Translation Update Thanks [Natali_Z](https://profiles.wordpress.org/natali_z) !
|