• Resolved kisabelle

    (@kisabelle)


    Hello, thanks for this great plugin.

    I have successfully enabled the proofreader on my custom post types (ACF WYSIWYG fields) with the use of the new filter (wproofreader_add_cpt), but I also have some custom fields on user profiles that I’d like to enable the proofreader for – is this possible?

    Specifically, I’m looking to enable it on ACF WYSIWYG fields in the Edit user screen.

    Thanks,
    Katrina

    • This topic was modified 5 years, 3 months ago by kisabelle.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author WebSpellChecker

    (@webspellchecker)

    @kisabelle,

    Thank you for sharing your feedback about our plugin!

    We are glad to hear that you were able to configure WProofreader in the custom post types.

    By default WProofreader works in the standard fields of ACF. Are you able to send us screenshot or exact type of fields that are used in ACF WYSIWYG fields in the Edit user screen?

    Thank you,

    Thread Starter kisabelle

    (@kisabelle)

    Thanks for your help. So it’s a field of type Wysiwyg Editor that is inside of a Repeater field (which is inside of tabs). The Proofreader doesn’t initialize. Screenshot:

    https://i.snag.gy/zGE6DW.jpg

    I’m not sure if it’s relevant but the following Location rules are set for the field group: Show if User Role is equal to All and Current User Role is equal to Administrator.

    I’ve also tried a test with a Wysiwyg Editor outside of the Repeater fields and Tabs, but it still isn’t initializing:

    https://i.snag.gy/O0Pq7S.jpg

    Hope this helps, let me know if I can provide any more info!

    Plugin Author WebSpellChecker

    (@webspellchecker)

    Thank you for the screenshots. I will pass this information to our technical team for review. We will get back to you on Monday.

    Plugin Author WebSpellChecker

    (@webspellchecker)

    @kisabelle

    We’ve checked the work of our CPT for posts and pages and it works properly. Our assumption is that the place where you try to enable plugin is settings of the website.

    May we ask you to send a screen of the whole page you have including URL? You can send it to our email address: [email protected]. We want to understand the type of the page where you try to enable it.

    Also, could you please specify the version of your WP, ACF and the plugin itseld?

    Thank you,

    Thread Starter kisabelle

    (@kisabelle)

    Hi,

    Thanks again for looking at this.

    Here’s a screenshot from the top of the page:

    https://i.snipboard.io/FkZHuK.jpg

    An example URL would be: /wp-admin/user-edit.php?user_id=2. If you need a full screenshot let me know. You should be able to reproduce by putting the following rules on an ACF field group:

    Show if User Role is equal to All and Current User Role is equal to Administrator.

    The site is running:

    Wordpress Version 5.2.2
    ACF Pro Version 5.8.3
    WProofreader Version 2.5

    • This reply was modified 5 years, 3 months ago by kisabelle.
    Plugin Author WebSpellChecker

    (@webspellchecker)

    Dear @kisabelle,

    Thank you for the additional answers and providing the URL.

    Now we understood what is the problem. WProofreader is not enabled for all WP website (it works for pages, posts and custom post types).

    Let us discuss internally to see if we can extend WProofreader support to other pages including /user-edit.php.

    I will get back to you on Tuersday as we have a bank holiday on Monday.

    Plugin Author WebSpellChecker

    (@webspellchecker)

    Dear @kisabelle,

    Today we have tried the options how to enabled WProofreader for your case. There are two options for you to consider:

    Option A. Enable WProofreader for user-edit.php:

    Go to your function.php and add the next code below:

    add_action( 'admin_enqueue_scripts', 'wsc_activate_bundle_in_admin_panel' );
    
    function wsc_activate_bundle_in_admin_panel() {
        if ( class_exists( 'WProofreader' ) ) {
            $screen = get_current_screen();
            if ( 'user-edit' === $screen->id ) {
    
                $WProofreader = new WProofreader();
                $WProofreader->init_proofreader_js();
            }
        }
    }

    Option B. Enable WProofreader for whole the admin panel:

    Go to your function.php and add the next code below:

    add_action( 'admin_enqueue_scripts', 'wsc_activate_bundle_in_admin_panel' );
    
    function wsc_activate_bundle_in_admin_panel() {
        if ( class_exists( 'WProofreader' ) ) {
            $WProofreader = new WProofreader();
            $WProofreader->init_proofreader_js();
        }
    }

    Try one of the suggested options. And let us know if it works for you.

    Please note that we haven’t tested properly this functionality in all admin. So, if you find any issues or strange behavior, please report it to us.

    Thread Starter kisabelle

    (@kisabelle)

    It’s working! I’ve made a slight modification for Option A to also enable it when editing your own profile:

    function wsc_activate_bundle_in_admin_panel() {
      if ( class_exists( 'WProofreader' ) ) {
        $screen = get_current_screen();
        if ( 'user-edit' === $screen->id || 'profile' === $screen->id ) {
    
          $WProofreader = new WProofreader();
          $WProofreader->init_proofreader_js();
        }
      }
    }
    
    add_action( 'admin_enqueue_scripts', 'wsc_activate_bundle_in_admin_panel' );

    Thank you for your help with this, I really appreciate it!

    • This reply was modified 5 years, 2 months ago by kisabelle.
    Plugin Author WebSpellChecker

    (@webspellchecker)

    Hi @kisabelle!

    That’s great news. We are glad to hear that it’s working now. Thank you for letting us know.

    Hope you are satisfied with the plugin and it helps you in improving your texts. We will be very thankful if you can rate our plugin and share you feedback!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Enable for custom User fields’ is closed to new replies.