Support » Plugin: myCRED » Transfer to —

  • Resolved xiao_coffe

    (@xiao_coffe)


    Hello! Great plugin:D

    I only have one little problem. I want the users to transfer “creds” to any name even if invented and not exist. The “creds” shall be taken away from them, but should be visible in the log where they send it to.

    Is there anyway to insert a code to do that or take away someone?

    (Now they can only transfer to recipients User email or User login)

    Regards: xiao_coffe

    http://wordpress.org/plugins/mycred/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Gabriel

    (@designbymerovingi)

    Hi.

    Transfers are done via an AJAX call which you could intercept and override with your own settings.

    Example:

    add_action( 'wp_ajax_mycred-transfer-creds', 'my_own_transfer_ajax_script', 1 );
    function my_own_transfer_ajax_script() {
       ... your code ...
    }

    You could just copy and paste the code used by myCRED which is located in mycred/addons/transfer/myCRED-addon-transfers.php

    Since the above action example has priority 1, it will run before myCRED.

    In which line should I insert that code?

    I know that it is maybe to much to ask for but is there any code you or someonelse know right now that should be working?

    Sorry that I´m not so good in the coding area but I´m learning.

    Regards: xiao_coffe

    Plugin Author Gabriel

    (@designbymerovingi)

    To make this type of customizations, it helps if you feel comfortable with PHP.
    When it comes to making changes to this plugin, you have two ways to add your customization:

    A) Create a custom plugin that applies all the customizations for you.
    B) Add your customizations to your child theme’s functions.php file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Transfer to —’ is closed to new replies.