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

    (@djpaul)

    BuddyPress Lead Developer

    I can show you were to look if you are a PHP developer and know how WordPress plugins are built. Unfortunately, I haven’t created any guides yet.

    Chris

    (@chriscodedesigns)

    That would be good if you could show me where to look.

    Plugin Author Paul Gibbs

    (@djpaul)

    BuddyPress Lead Developer

    Take a look at http://svn.wp-plugins.org/achievements/tags/3.3/includes/extensions/inviteanyone.php

    Achievements works on WordPress’ actions. So, in your custom form, find or add a call to do_action in the appropriate place, and get the name of that action. You’ll need to set this in $this->functions in the constructor.

    Essentially, what you need to do is duplicate that class, and set parameters to suit.
    You’ll instantiate your class through a function hooked to dpa_init. e.g.

    function chris_achievements() {
    require( ‘your_file.php’ );
    }
    add_action( ‘dpa_init’, ‘chris_achievements’ );

    Have a go, it’s pretty straightforward. If you get stuck, pastebin it, and let me know what the precise difficulty is. Good luck!

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