Author: OpenTute+

Ninja Forms – EDD

Ninjaforms EDD Checkout

Need to accept Payment using Ninja Form with EDD?

Well, here is a already solution available for it. Thanks to Andrew Munro.

Here is plugin Ninjaforms EDD Checkout. For using it, simply you can down load it from github and install it in your WordPress Setup. Before doing it we need to make sure that we have installed the Ninja Form and EDD.

Now We need to create a form in Ninja form.Suppose we want to make a donation using Ninja Form. So we need to add Payment fields. Here I am adding a “Total” field to the form.

Forms ‹ UltimateMember — WordPress

 

Now we have added payment fields. We need to link it to EDD. In setting section of Ninja Form, we can link it to EDD.

Forms ‹ UltimateMember — WordPress

Now we are done with necessary settings. Bingo!!

Time to make a payment. So we need to place that ninja form shortcode on page and need to open that page.

Ninja UltimateMember

 

When we will do submit the form, it will redirect to EDD checkout page with details of the form.

Checkout UltimateMember

Final step is to hit purchase button and now we can easily accept payment using Ninja Form and EDD.

Filed under: Plugins

BuddyPress Give

BuddyPress Give

BuddyPress Give:

BuddyPress Give is an extension for  Social Network. With BuddyPress Give it as easy as possible to accept and integrate donations for your BuddyPress community through the GiveWP.com plugin

 

Requirements

Recommended Give add-ons

  • Recurring Payments
  • Stripe

Base Features

  • Add Public Donations to the activity stream
  • Add a badge to a user avatar when they are a recurring donator
  • Show the donations that have been made on a users profile (members/bowe/donations/)
  • Allow users to donate on behalf of someone else (including picture + message)
  • A custom member directory of active donators.
Filed under: PluginsTagged with: ,

How To Extend Ultimate Member Profile Menu using Hooks

How To Extend Ultimate Member Profile Menu using Hooks

Extending Ultimate Member Profile Menu

We need to extend main profile tabs. For that we need to find the hook .

Here we have “um_profile_tabs”.

/* First we need to extend main profile tabs */

add_filter('um_profile_tabs', 'add_custom_profile_tab', 1000 );
function add_custom_profile_tab( $tabs ) {

	$tabs['mycustomtab'] = array(
		'name' => 'My custom tab',
		'icon' => 'um-faicon-comments',
	);
		
	return $tabs;
		
}

Now we just have to add content to that tab using this action

/* Then we just have to add content to that tab using this action */

add_action('um_profile_content_mycustomtab_default', 'um_profile_content_mycustomtab_default');
function um_profile_content_mycustomtab_default( $args ) {
	echo 'Hello world!';
}

Please note this

add_action(‘um_profile_content_mycustomtabdefault’, ‘um_profile_contentmycustomtabdefault’);
function um_profile_content
mycustomtab_default( $args ) {

 

Find more details here

Now we are done with adding a new custom tab.

Well, if we want to change the order of tabs, then we can change the tab order in the array. Same can be achieved by the hook “um_profile_tabs

Well I will explain another two array function which we can use to change the position of the Tab.

function array_splice_assoc(&$input, $offset, $length, $replacement) {
        $replacement = (array) $replacement;
        $key_indices = array_flip(array_keys($input));
        if (isset($input[$offset]) && is_string($offset)) {
                $offset = $key_indices[$offset];
        }
        if (isset($input[$length]) && is_string($length)) {
                $length = $key_indices[$length] - $offset;
        }

        $input = array_slice($input, 0, $offset, TRUE)
                + $replacement
                + array_slice($input, $offset + $length, NULL, TRUE);
}
function array_move($which, $where, $array) {
    $tmpWhich = $which;
    $j=0;
    $keys = array_keys($array);

    for($i=0;$i<count($array);$i++)
    {
        if($keys[$i]==$tmpWhich)
            $tmpWhich = $j;
        else
            $j++;
    }
    $tmp  = array_splice($array, $tmpWhich, 1);
    array_splice_assoc($array, $where, 0, $tmp);
    return $array;
}

Now again we will use the hook change the tab order.

 

/* Change Tab Order */
add_filter('um_profile_tabs', 'pages_tab', 10000 );
function pages_tab( $tabs ) {
	$tabs = array_move('mycustomtab',5,$tabs); // Move the Tab to fifth position.
	//echo "<pre>";
	//print_r($tabs);
	//echo "</pre>";
	return $tabs;
}

So here is a cool and simple way to move the tab position. Thanks for reading

Filed under: Plugins

Some Must have Plugins for WP JOB MANAGER

BuddyPress Job Manager

We know all that WP Job Manager is a lightweight, open source job board plugin for WordPress. Yup. But we can extend it do more complex jobs.

Here is some must have lists:

Filed under: Plugins