Title: Fix Content Links
Author: Fleuv
Published: <strong>جنوری 11, 2019</strong>
Last modified: جنوری 13, 2019

---

جستجوی افزونه‌ها

این افزونه **با آخرین 3 نسخه اصلی وردپرس تست نشده است**. ممکن است دیگر نگهداری یا
پشتیبانی نشود و ممکن است هنگام استفاده با نسخه های جدیدتر وردپرس مشکلات سازگاری 
داشته باشد.

![](https://ps.w.org/fix-content-links/assets/icon.svg?rev=2010887)

# Fix Content Links

 توسط [Fleuv](https://profiles.wordpress.org/fleuv/)

[دانلود](https://downloads.wordpress.org/plugin/fix-content-links.zip)

 * [جزئیات](https://fa-af.wordpress.org/plugins/fix-content-links/#description)
 * [نقد و بررسی‌ها](https://fa-af.wordpress.org/plugins/fix-content-links/#reviews)
 *  [نصب](https://fa-af.wordpress.org/plugins/fix-content-links/#installation)
 * [توسعه](https://fa-af.wordpress.org/plugins/fix-content-links/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/fix-content-links/)

## توضیحات

Ever had to replace a couple of links after a migration or because another user 
added it somehow incorrectly to the
 site? Well no worries about that anymore, by
simply installing and activating this plugin that problem will be gone for good!

With this plugin you can either replace incorrect links temporary or permanently.
At the plugin settings page you’re
 able to tweak the replace algorithm at the following
aspects:

 * Only replace links with a certain path prefix.
 * Exclude links from being replaced.

In the future there might also be a feature added to help specify on what content
the replacement will be executed. For
 now the plugin does only replaces incorrect
links in the `any` post type’s post content.

By using this plugin on your WordPress site, you’re allowing the plugin to replace
URL’s in the `src` attribute which
 are stored in your WordPress site’s database
and thus can be altered via the WordPress admin area.

### Arbitrary section

The plugin comes with one hook `fix-content-links_save_option_{$setting}` where 
$setting is either: type, path or
 exclude. With this filter you can add your own
functionality before the saving process of an option completes.

Use with the Transient API to modify the admin notice during the saving process.

#### Example

    ```
    <?php
    add_filter('fix-content-links_save_option_type', function ($value) {
        $transient = 'fix-content-links_' . get_current_user_id() . '_admin_notice'
        $update = get_transient($transient);

        if ($value === 'disable' && is_array($update) && array_key_exists('message', $update)) {
            $update['message'] = '<p>' . __('Plugin disabled.') '</p>';
            set_transient($update);
        }

        return $value;
    }
    ?>
    ```

## عکس‌های صفحه

 * [[
 * The plugin’s settings page, located in the Settings submenu.

## نصب

This section describes how to install the plugin and get it working.

 1. Upload the wp-fix-content-links.zip to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Modify the plugin settings to your needs, by default the plugin will replace links
    temporary.

## سوالات متداول

  Why can’t I set the plugin to permanently replace links by default?

For software design principals the plugin will only permanently replace links on
command and not like the temporary
 setting on every request.

  Why did the plugin break my links instead of fixing them?

You will probably have to try a different configuration. Try to disable link fixer,
where after you go back to the page
 where you want to fix your links. Check if 
you can find some similarity what can be used as a general identifier to match against.
Update your settings and see the effect of it by enabling the temporary link fixer.
Setting up the plugin might be a though process and requires you to do some research
like explained above as well as your intuition.

## نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

## توسعه دهندگان و همکاران

“Fix Content Links” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ Fleuv ](https://profiles.wordpress.org/fleuv/)

[ترجمه “Fix Content Links” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/fix-content-links)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/fix-content-links/),
را بررسی کنید [مخزن SVN](https://plugins.svn.wordpress.org/fix-content-links/), 
یا مشترک شوید [گزارش توسعه](https://plugins.trac.wordpress.org/log/fix-content-links/)
توسط [RSS](https://plugins.trac.wordpress.org/log/fix-content-links/?limit=100&mode=stop_on_copy&format=rss).

## گزارش تغییرات

N.A.

## اطلاعات

 *  Version **1.0.2**
 *  Last updated **7 سال پیش**
 *  Active installations **10+**
 *  WordPress version ** 5.0 یا بالاتر **
 *  Tested up to **5.0.25**
 *  PHP version ** 7.1 یا بالاتر **
 *  Language
 * [English (US)](https://wordpress.org/plugins/fix-content-links/)
 * Tags
 * [content](https://fa-af.wordpress.org/plugins/tags/content/)[tool](https://fa-af.wordpress.org/plugins/tags/tool/)
 *  [نمایش پیشرفته](https://fa-af.wordpress.org/plugins/fix-content-links/advanced/)

## امتیازها

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/fix-content-links/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/fix-content-links/reviews/)

## مشارکت کنندگان

 *   [ Fleuv ](https://profiles.wordpress.org/fleuv/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/fix-content-links/)