mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- added hooks and integrations for JobBoardWP plugin;
This commit is contained in:
@@ -39,6 +39,7 @@ if ( ! class_exists( 'um\Dependencies' ) ) {
|
||||
'friends' => '2.1.4',
|
||||
'groups' => '2.1.7',
|
||||
'instagram' => '2.0.5',
|
||||
'jobboardwp' => '1.0.0',
|
||||
'mailchimp' => '2.2.0',
|
||||
'messaging' => '2.2.5',
|
||||
'mycred' => '2.1.6',
|
||||
@@ -144,6 +145,20 @@ if ( ! class_exists( 'um\Dependencies' ) ) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Check if JobBoardWP plugin is active
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function jobboardwp_active_check() {
|
||||
|
||||
if ( ! self::$active_plugins ) self::init();
|
||||
|
||||
return in_array( 'jobboardwp/jobboardwp.php', self::$active_plugins ) || array_key_exists( 'jobboardwp/jobboardwp.php', self::$active_plugins );
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Check if myCRED plugin is active
|
||||
*
|
||||
|
||||
@@ -38,6 +38,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
* @method UM_Unsplash Unsplash()
|
||||
* @method UM_ForumWP ForumWP()
|
||||
* @method UM_Profile_Tabs Profile_Tabs()
|
||||
* @method UM_JobBoardWP JobBoardWP()
|
||||
*/
|
||||
final class UM extends UM_Functions {
|
||||
|
||||
|
||||
@@ -1114,7 +1114,7 @@ if ( ! class_exists( 'um\core\Builtin' ) ) {
|
||||
|
||||
// account page use ( not public )
|
||||
|
||||
'profile_privacy' => array(
|
||||
'profile_privacy' => array(
|
||||
'title' => __( 'Profile Privacy', 'ultimate-member' ),
|
||||
'metakey' => 'profile_privacy',
|
||||
'type' => 'select',
|
||||
@@ -1130,7 +1130,7 @@ if ( ! class_exists( 'um\core\Builtin' ) ) {
|
||||
'required_perm' => 'can_make_private_profile',
|
||||
),
|
||||
|
||||
'profile_noindex' => array(
|
||||
'profile_noindex' => array(
|
||||
'title' => __( 'Avoid indexing my profile by search engines', 'ultimate-member' ),
|
||||
'metakey' => 'profile_noindex',
|
||||
'type' => 'select',
|
||||
@@ -1149,7 +1149,7 @@ if ( ! class_exists( 'um\core\Builtin' ) ) {
|
||||
'required_perm' => 'can_make_private_profile',
|
||||
),
|
||||
|
||||
'hide_in_members' => array(
|
||||
'hide_in_members' => array(
|
||||
'title' => __( 'Hide my profile from directory', 'ultimate-member' ),
|
||||
'metakey' => 'hide_in_members',
|
||||
'type' => 'radio',
|
||||
@@ -1167,29 +1167,32 @@ if ( ! class_exists( 'um\core\Builtin' ) ) {
|
||||
'required_opt' => array( 'members_page', 1 ),
|
||||
),
|
||||
|
||||
'delete_account' => array(
|
||||
'title' => __('Delete Account','ultimate-member'),
|
||||
'metakey' => 'delete_account',
|
||||
'type' => 'radio',
|
||||
'label' => __('Delete Account','ultimate-member'),
|
||||
'help' => __('If you confirm, everything related to your profile will be deleted permanently from the site','ultimate-member'),
|
||||
'required' => 0,
|
||||
'public' => 1,
|
||||
'editable' => 1,
|
||||
'default' => __('No','ultimate-member'),
|
||||
'options' => array( __('Yes','ultimate-member') , __('No','ultimate-member') ),
|
||||
'account_only' => true,
|
||||
'delete_account' => array(
|
||||
'title' => __( 'Delete Account', 'ultimate-member' ),
|
||||
'metakey' => 'delete_account',
|
||||
'type' => 'radio',
|
||||
'label' => __( 'Delete Account', 'ultimate-member'),
|
||||
'help' => __( 'If you confirm, everything related to your profile will be deleted permanently from the site', 'ultimate-member' ),
|
||||
'required' => 0,
|
||||
'public' => 1,
|
||||
'editable' => 1,
|
||||
'default' => __( 'No', 'ultimate-member' ),
|
||||
'options' => array(
|
||||
__( 'Yes', 'ultimate-member' ),
|
||||
__( 'No', 'ultimate-member' )
|
||||
),
|
||||
'account_only' => true,
|
||||
),
|
||||
|
||||
'single_user_password' => array(
|
||||
'title' => __('Password','ultimate-member'),
|
||||
'metakey' => 'single_user_password',
|
||||
'type' => 'password',
|
||||
'label' => __('Password','ultimate-member'),
|
||||
'required' => 1,
|
||||
'public' => 1,
|
||||
'editable' => 1,
|
||||
'account_only' => true,
|
||||
'single_user_password' => array(
|
||||
'title' => __( 'Password', 'ultimate-member' ),
|
||||
'metakey' => 'single_user_password',
|
||||
'type' => 'password',
|
||||
'label' => __( 'Password', 'ultimate-member' ),
|
||||
'required' => 1,
|
||||
'public' => 1,
|
||||
'editable' => 1,
|
||||
'account_only' => true,
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
@@ -158,7 +158,9 @@ if ( ! class_exists( 'um\core\Enqueue' ) ) {
|
||||
|
||||
wp_register_script('um_members', $this->js_baseurl . 'um-members' . $this->suffix . '.js', array( 'jquery', 'wp-util', 'jquery-ui-slider', 'um_dropdown', 'wp-hooks', 'jquery-masonry', 'um_scripts' ), ultimatemember_version, true );
|
||||
wp_register_script('um_profile', $this->js_baseurl . 'um-profile' . $this->suffix . '.js', array( 'jquery', 'wp-util', 'wp-i18n' ), ultimatemember_version, true );
|
||||
wp_register_script('um_account', $this->js_baseurl . 'um-account' . $this->suffix . '.js', array( 'jquery' ), ultimatemember_version, true );
|
||||
|
||||
$account_deps = apply_filters( 'um_account_scripts_dependencies', array( 'jquery', 'wp-hooks' ) );
|
||||
wp_register_script('um_account', $this->js_baseurl . 'um-account' . $this->suffix . '.js', $account_deps, ultimatemember_version, true );
|
||||
|
||||
wp_register_script( 'um_gchart', 'https://www.google.com/jsapi', array(), ultimatemember_version, true );
|
||||
}
|
||||
|
||||
@@ -778,7 +778,7 @@ function um_user_submitted_registration( $style = false ) {
|
||||
*
|
||||
* @since 2.1.4
|
||||
*/
|
||||
function um_user_submitted_registration_formatted( $style = false ){
|
||||
function um_user_submitted_registration_formatted( $style = false ) {
|
||||
$output = null;
|
||||
|
||||
$submitted_data = um_user( 'submitted' );
|
||||
@@ -793,7 +793,9 @@ function um_user_submitted_registration_formatted( $style = false ){
|
||||
|
||||
if ( isset( $submitted_data ) && is_array( $submitted_data ) ) {
|
||||
|
||||
$fields = UM()->query()->get_attr( 'custom_fields', $submitted_data['form_id'] );
|
||||
if ( isset( $submitted_data['form_id'] ) ) {
|
||||
$fields = UM()->query()->get_attr( 'custom_fields', $submitted_data['form_id'] );
|
||||
}
|
||||
|
||||
if ( isset( $fields ) ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user