WP Manifestindependent plugin directory
manifest / users / up4-personalization

up4-personalization

This is a short description of what the plugin does. It's displayed in the WordPress admin area.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/gulosolutions/up4-personalization/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
  • How to Manage Migrations:

    • Navigate inside the up4-personalization in the plugins directory. From there run
      • php vendor/bin/phinx migrate -e development
  • API access for geolocation and weather does not need to be configured.

  • Saved to db table when user starts session. Use methods below in section 6 to retrieve information

  • In the main index.php file of the theme you can get access to the user object (WordPress and Up4User) with the following commands.

  • For Up4User:

    • Utility methods for accessing specific fields
    // checks if fb user is logged in
    $facebook_social_user->isLoggedIn());

    // gets up4User object
    $facebook_social_user->get());

    // gets up4User id
    $facebook_social_user->getId());

    // gets facebook id
    $facebook_social_user->getFacebookId());

    // gets first name
    $facebook_social_user->getName());

    // gets weather conditions
    $facebook_social_user->getConditions());

    // gets temp
    $facebook_social_user->getWeather());

    // gets zip
    $facebook_social_user->getZip());

    // get user's origin i.e. Chicago, IL
    $facebook_social_user->getOrigin());

    // get user's fb profile url
    $facebook_social_user->getProfilePictureUrl());
  • For FB login use shortcode
    echo do_shortcode('[facebook-social_facebook_login_button]');
  • For Survey use shortcode
    echo do_shortcode('[facebook-social_survey_form]');
  • To compile the Vue files use for production:
set WP_DEBUG to false in wp-config.php

npm run build
  • To compile and use the Vue files for development:
set WP_DEBUG to true in wp-config.php

npm run dev