plugin-icon

Custom Permalink Editor

제작자: Kings Crest Global·
Set Custom Permalink Editor on a per-post, per-tag per-page, and per-category basis.
등급
5/5
버전
1.0.4
활성화된 설치 항목
3K
최근 업데이트일
Mar 29, 2024
Custom Permalink Editor
  • This plugin is Developed by Team KCG to change the URL of the post, page, and custom post.
  • This plugin allows you to edit permalink on posts, pages, custom posts.
  • This plugin Do not change the theme default permalink structure
  • You have to edit every post/page manually and edit the permalink.
  • If you Uninstall this plugin. Your post will back to the default permalink.

Free Plugin Support

  • If you need any custom modifications or for any other queries, feedback if you simply want to get in touch with us please use our contact form.

Privacy Policy

This plugin does not collect any user Information If you need any custom modification or any other thing contact with https://kingscrestglobal.com/ and mention Custom Permalink Editor

Filters

Add `PATH_INFO` in `$_SERVER` Variable

` add_filter( ‘cp_editor_path_info’, ‘__return_true’ );

Exclude Permalink

To exclude any Permalink to be processed by the plugin, add the filter that looks like this:

function team_kcg_exclude_permalink( $permalink ) { if ( false !== strpos( $permalink, ‘sitemap.xml’ ) ) { return ‘__true’; }

return; } add_filter( ‘cp_editor_exclude_permalink’, ‘team_kcg_exclude_permalink’ );

Exclude Post Type

To remove Custom Permalink Editor **form** from any post type, add the filter that looks like this:

function team_kcg_exclude_post_type( $post_type ) { // Replace ‘custompost’ with your post type name if ( ‘custompost’ === $post_type ) { return ‘__true’; }

return ‘__false’; } add_filter( ‘cp_editor_exclude_post_type’, ‘team_kcg_exclude_post_type’ );

Exclude Posts

To exclude Custom Permalink Editor **form** from any posts (based on ID, Template, etc), add the filter that looks like this:

function team_kcg_exclude_posts( $post ) { if ( 1557 === $post->ID ) { return true; }

return false; } add_filter( ‘cp_editor_exclude_posts’, ‘team_kcg_exclude_posts’ );

Allow Accents Letters

To allow accents letters, please add this on your theme functions.php`: function team_kcg_allow_caps() { return true; } add_filter( 'cp_editor_allow_accents', 'team_kcg_allow_caps' );

Thanks for the Support

How To Use

You can change the permalink by following the steps.

  • Edit your posts/pages and create SEO friendly custom URL.
  • In the permalink box insert your desired permalink and update the post.
  • Preview your post and see the post URL is changed.
  • If you want to revert to the WordPress default URL system, just deactivate the plugin.
무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 6.4.7
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.