This file contains 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 | |
/** | |
* Template Name: Elementor | |
* | |
* @package WordPress | |
* @subpackage Orangeweb | |
* @since 1.0.0 | |
* | |
* 2016 - Desenvolvido por Agência Orangeweb - www.orangeweb.com.br | |
*/ |
This file contains 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( 'elementor/widget/before_render_content', 'custom_render_button' ); | |
/** | |
* Adding a new attribute to our button | |
* | |
* @param \Elementor\Widget_Base $button | |
*/ | |
function custom_render_button( $button ) { |
This file contains 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 deleteFromImgur() { | |
$.ajax({ | |
url: "https://api.imgur.com/3/image/{id}", | |
type: "DELETE", | |
headers: { | |
"Authorization": "Client-ID YOUR-CLIEND-ID-GOES-HERE" | |
}, | |
success: function(response) { | |
//console.log(response); | |
} |
This file contains 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 | |
/* | |
Description: A simple class based on a tutorial at WP.Tuts that creates an page with metaboxes. | |
Author: Stephen Harris | |
Author URI: http://www.stephenharris.info | |
*/ | |
/* Copyright 2011 Stephen Harris (contact@stephenharris.info) | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by |
This file contains 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 | |
/* | |
These changes are for the plugin User-Specific-Content by Bainternet: https://wordpress.org/support/plugin/user-specific-content | |
Add the below funciton inside the class bainternet_U_S_C | |
*/ | |
/* Change Init */ | |
public function U_S_C_init(){ | |
$options = $this->U_S_C_get_option(); | |
if ($options['run_on_the_content']){ |
This file contains 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
var IPE_Timer = (function(){ | |
// Self calling function | |
// Private property for holding the only existing instance | |
var T; | |
var createTimer = function(){ | |
// Private properties | |
var stop_flag = false; | |
var speed = 1000; |
This file contains 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 | |
/** | |
* Duplicate this file as many times as you would like, just be sure to change the | |
* Empty_Widget class name to a custom name of your choice. Have fun! redrokk.com | |
* | |
* Plugin Name: Empty Widget | |
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Contact_RedRokk_Widget keyword to rebrand this class for your needs. | |
* Author: RedRokk Interactive Media | |
* Version: 1.0.0 | |
* Author URI: http://www.redrokk.com |
This file contains 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
// js/editor_plugin.js | |
/** | |
* an example tinyMCE Plugin | |
*/ | |
tinymce.create( | |
'tinymce.plugins.myPlugin', | |
{ | |
/** | |
* @param tinymce.Editor editor | |
* @param string url |
This file contains 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 | |
/** | |
* | |
* This script will copy your wordpress from public_html (or wherever) | |
* and place it in a staging folder. | |
* It will then clone the database, reconfigure the config file | |
* and replace URL's from the original URL to your staging URL. | |
* It will then make sure to NOT allow search engines to index the page. | |
* | |
* Use this script to clone your main wp in order to test maintenance work |
This file contains 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 | |
WP_CLI::addCommand('export', 'ExportCommand'); | |
/** | |
* Implement export command | |
* | |
* @package wp-cli | |
* @subpackage commands/internals | |
*/ |