This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import os | |
| import time | |
| import webbrowser | |
| import sys | |
| import re | |
| def handleWindows(extra_seconds): | |
| print("OS : Windows") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| clear | |
| # Remove/Uninstall process | |
| echo "Start WordPress installation" | |
| if [[ $1 == "remove" ]]; then | |
| | |
| # Grab the project name | |
| if [[ -z $2 ]]; then | |
| echo "WP Project to remove: " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Here is the sample code, you can use to get the edit post link generated by WPUF. The code should include inside the theme's functions.php | |
| <?php | |
| function wpuf_get_post_edit_link( $post_id ) { | |
| if ( !class_exists( 'WP_User_Frontend' ) || !$post_id ) { | |
| return; | |
| } | |
| $edit_page = (int) wpuf_get_option( 'edit_page_id', 'wpuf_frontend_posting' ); | |
| $url = get_permalink( $edit_page ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Add this CSS to your theme style.css file | |
| //For the two column: Use the class .wpuf-col-half on the first field advanced settings->Custom CSS codes. Then Add the .wpuf-col-half-last on the 2nd filed advanced settings->custom CSS codes | |
| //For the treee column: Use the class .wpuf-col-one-third of the first two field advanced settings->Custom css codes. Then Add the .wpuf-col-one-third-last on the last field on advanced settings->custom CSS codes | |
| .wpuf-col-half, | |
| .wpuf-col-half-last { | |
| width: 50%; | |
| float: left; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if ( ! defined( 'ABSPATH') ) exit; | |
| add_action( 'admin_head', 'dokan_dashboard_hide_tab' ); | |
| function dokan_dashboard_hide_tab() { | |
| if ( ! is_admin() ) return; | |
| ?> | |
| <style type="text/css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Please open the 'wpuf-pro/includes/frontend-form-profie.php file and remove/comment out the codes from line number 293 to 303. Like the codes below: | |
| <?php | |
| if ( isset( $form_settings['enable_email_verification'] ) && $form_settings['enable_email_verification'] != 'yes' ) { | |
| $status = $form_settings['wpuf_user_status']; | |
| $this->user_email_notification( $status, $user_id ); | |
| $this->admin_email_notification( $status, $user_id ); | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'learn-press/admin-default-scripts', 'rt_replace_js' ); | |
| function rt_replace_js( $data ){ | |
| $screen = get_current_screen(); | |
| if ( $screen->base != 'toplevel_page_weforms' ) { | |
| return $data; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'wpuf_textarea_editor_args', 'wpuf_editor_settings' ); | |
| function wpuf_editor_settings( $editor_settings ) { | |
| $editor_settings['editor_height'] = 20; | |
| return $editor_settings; | |
| } |