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_action('nsl_register_new_user', function ($user_id) { | |
| if (NextendSocialLogin::getTrackerData() == 'editor') { | |
| $user = new WP_User($user_id); | |
| $user->set_role('editor'); | |
| } | |
| }); |
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: Test | |
| */ | |
| function test() { | |
| return '<div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 120" preserveAspectRatio="none"> | |
| <g class="n2-ss-divider-start"> | |
| <path fill="RGBA(255,255,255,1)" opacity="0.25" d="M1920,0 0,120 0,0z" duration="1" delay="0" data-original="M1920,0 0,0 0,0z"></path> | |
| <path fill="RGBA(255,255,255,1)" opacity="0.5" d="M1920,0 0,80 0,0z" duration="1" delay="0.2" data-original="M1920,0 0,0 0,0z"></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
| <div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 120" preserveAspectRatio="none"><br /> | |
| <g class="n2-ss-divider-start"> | |
| <path fill="RGBA(255,255,255,1)" opacity="0.25" d="M1920,0 0,120 0,0z" duration="1" delay="0" data-original="M1920,0 0,0 0,0z"></path> | |
| <path fill="RGBA(255,255,255,1)" opacity="0.5" d="M1920,0 0,80 0,0z" duration="1" delay="0.2" data-original="M1920,0 0,0 0,0z"></path> | |
| <path fill="RGBA(255,255,255,1)" d="M1920,0 0,40 0,0z" duration="1" delay="0.4" data-original="M1920,0 0,0 0,0z"></path> | |
| </g><br /> | |
| <g class="n2-ss-divider-end"> | |
| <path fill="RGBA(255,255,255,1)" opacity="0.25" d="M1920,0 0,120 0,0z"></path> | |
| <path fill="RGBA(255,255,255,1)" opacity="0.5" d="M1920,0 0,80 0,0z"></path> | |
| <path fill="RGBA(255,255,255,1)" d="M1920,0 0,40 0,0z"></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: Nextend Social Login - Username length | |
| */ | |
| add_filter('nsl_validate_username', function ($isValid, $username, $errors) { | |
| if (strlen($username) < 6) { | |
| $errors->add('invalid_username', '<strong>' . __('ERROR') . '</strong>:' . __('Sorry, username must contain at least 6 characters.')); | |
| $isValid = false; | |
| } |
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 | |
| //Original | |
| function zeo_final_title(){ | |
| // Use object to avoid namespace collisions | |
| $zeo_rewrite_title = new zeo_rewrite_title(); | |
| // We want to act when the page is 99% complete | |
| add_action('wp_footer', array(&$zeo_rewrite_title, 'wpzeo_footer')); |
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_action('plugins_loaded', 'fix_insert_php_code_snippet'); | |
| function fix_insert_php_code_snippet() { | |
| add_shortcode('xyz-ips', 'mod_xyz_ips_display_content'); | |
| } | |
| function mod_xyz_ips_display_content($xyz_snippet_name) { | |
| global $wpdb; | |
| if (is_array($xyz_snippet_name)) { |
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: Fix: Insert PHP Code Snippet output buffer issue | |
| Author: nextendweb | |
| Version: 1.0.0 | |
| Requires at least: 4.1 | |
| Tested up to: 4.9 | |
| License: GPLv2 or later | |
| License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| */ |
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 | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, "https://graph.facebook.com/v2.12/oauth/access_token"); | |
| curl_setopt($ch, CURLOPT_POST, 1); | |
| curl_setopt($ch, CURLOPT_POSTFIELDS, "postvar1=value1&postvar2=value2&postvar3=value3"); | |
| curl_setopt($ch, CURLOPT_VERBOSE, true); |
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 | |
| defined('ABSPATH') || exit; | |
| class NextendSmartSlider3Gutenberg { | |
| public function __construct() { | |
| add_action('enqueue_block_editor_assets', array( | |
| $this, | |
| 'enqueue_block_editor_assets' |
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
| (function (blocks, editor, i18n, element, components, _) { | |
| var el = element.createElement; | |
| blocks.registerBlockType('nextend/smartslider3', { | |
| title: 'Smart Slider 3', | |
| icon: 'welcome-learn-more', | |
| category: 'common', | |
| attributes: { | |
| slider: { | |
| type: 'string' |