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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Page Name</title> | |
| <style> | |
| * { |
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; | |
| /* | |
| Plugin Name: Ninja Forms - Disable Post Creation User Dropdown | |
| Plugin URI: http://ninjaforms.com | |
| Description: Disable Post Creation User Dropdown | |
| Version: 0.1.0 | |
| Author: Kyle B. Johnson | |
| Author URI: http://kylebjohnson.me | |
| */ |
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 | |
| /* | |
| Plugin Name: Ninja Forms - Webhooks Auth Headers | |
| */ | |
| add_filter( 'nf_remote_post_args', 'nf_wh_add_auth' ); | |
| function nf_wh_add_auth( $args ){ | |
| $headers = array( |
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; | |
| /* | |
| * Plugin Name: Ninja Forms - Front End Editor - Disable do_shortcode | |
| * Plugin URI: http://kylebjohnson.me | |
| * Version: 0.1.0 | |
| * Author: The WP Ninjas | |
| */ | |
| add_filter( 'nf_fee_do_shortcodes', 'nf_fee_do_shortcodes_disbale' ); | |
| function nf_fee_do_shortcodes_disbale( $enabled ){ |
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 | |
| class Foo | |
| { | |
| protected $_settings = array(); | |
| public function __construct() | |
| { | |
| $this->_settings = include 'config.php'; | |
| } |
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( 'nf_registration_logged_in_msg', 'kbj_nf_custom_login_form_success_message' ); | |
| function kbj_nf_custom_login_form_success_message( $message ){ | |
| $message = "You are now logged in. Please <a href='#'>click here</a> to be redirected."; | |
| return $message; | |
| } |
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 | |
| function multi_to_single_r( $array ){ | |
| foreach( $array as $key => $value ){ | |
| if( is_array( $value ) ){ | |
| unset( $array[ $key ] ); | |
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( 'nf_email_notification_attachments', 'my_custom_attachment', 10, 2 ); | |
| function my_custom_attachment( $attachments, $action_id ){ | |
| // Confirm the Action ID is the intended email action. | |
| if( '1' != $action_id ) return $attachments; | |
| // Create Attachment File Path |
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 | |
| /* | |
| Plugin Name: Ninja Forms - Custom Attachment Filter | |
| */ | |
| add_filter( 'nf_email_notification_attachments', 'my_custom_attachment', 9001, 2 ); | |
| function my_custom_attachment( $attachments, $action_id ){ |
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
| public function get_user() | |
| { | |
| return get_user_by( 'id', $this->_user_id ); | |
| } |