Skip to content

Instantly share code, notes, and snippets.

View thebengalboy's full-sized avatar
🎯
learning & chirping

Mehedi Hasan thebengalboy

🎯
learning & chirping
View GitHub Profile
@thebengalboy
thebengalboy / BalsamiqForever.py
Created September 20, 2022 07:19
Extend your trial period for Balsamiq Wireframes on Windows and macOS Forever!
import json
import os
import time
import webbrowser
import sys
import re
def handleWindows(extra_seconds):
print("OS : Windows")
@thebengalboy
thebengalboy / wpinstaller.sh
Created June 13, 2019 06:09 — forked from sabbir1991/wpinstaller.sh
Autometic WP installation Process using bash
#!/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: "
@thebengalboy
thebengalboy / function.php
Last active August 18, 2018 18:43
Editing other post by WP User Frontend
//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 );
@thebengalboy
thebengalboy / style.css
Last active May 8, 2019 16:49
Adding multi-column field on the WPUF and weForms
//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;
}
@thebengalboy
thebengalboy / function.php
Created July 23, 2018 15:57
Hide Dokan News Updates on Dashboard
<?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">
@thebengalboy
thebengalboy / frontend-form-profie.php
Created July 9, 2018 12:33
How to disable WPUF welcome email and user WP Default email after registering a user
// 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 {
@thebengalboy
thebengalboy / function.php
Created July 8, 2018 13:19
How to resolve conflict between weForms Pro and LearnPress
<?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;
}
@thebengalboy
thebengalboy / function.php
Last active July 8, 2018 13:21
WP User Frontend: Changing the height of wp-editor
<?php
add_filter( 'wpuf_textarea_editor_args', 'wpuf_editor_settings' );
function wpuf_editor_settings( $editor_settings ) {
$editor_settings['editor_height'] = 20;
return $editor_settings;
}