Admin wp_capabilities
wp_user_level
10
a:1:{s:13:"administrator";b:1;}
Contributor wp_capabilities
wp_user_level
1
/** | |
* Custom WordPress block boilerplate. | |
* | |
* @package My_Block_Package | |
* @author Alexis J. Villegas | |
* @link http://www.alexisvillegas.com | |
* @license GPL-2.0+ | |
*/ | |
( function( blocks, editor, element ) { |
// License: GPLv2+ | |
var el = wp.element.createElement, | |
registerBlockType = wp.blocks.registerBlockType, | |
ServerSideRender = wp.components.ServerSideRender, | |
TextControl = wp.components.TextControl, | |
InspectorControls = wp.editor.InspectorControls; | |
/* | |
* Here's where we register the block in JavaScript. |
$('body').on('click', '#messages-view a', (event) => { | |
event.preventDefault(); | |
let link = event.target.href; | |
require("electron").shell.openExternal(link); | |
}); |
image: tetraweb/php:7.0 | |
services: | |
- mysql:5.6 | |
variables: | |
MYSQL_ROOT_PASSWORD: root_password | |
MYSQL_DATABASE: my_db | |
before_script: |
javascript:(function(){var request=new XMLHttpRequest();request.open("GET",window.location.href.replace(/ro\//g,'hu/'),false);request.send(null);var hidden=document.body.appendChild(document.createElement("div"));hidden.style.display="none";hidden.innerHTML=request.responseText;price=hidden.querySelector('#schemaProductPrice');if(price){price=parseInt(hidden.querySelector('#schemaProductPrice').textContent.replace(/\./gm,''));price=(price*1.41/100).toFixed(2)+" lei ( "+price+" HUF )";}else{price="N/A";}price_hu=document.createElement("div");price_hu.innerHTML=price;refNode=document.querySelector('#price1');refNode.parentNode.insertBefore(price_hu,refNode.nextSibbling);})() |
/* | |
* Hide Default Edit Profile Fields in the backend | |
*/ | |
function wppb_hide_personal_options(){ | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
$('form#your-profile > h3:first').hide(); | |
$('form#your-profile > table:first').hide(); |
/** | |
* Validate a Gravity Forms license submission against EDD remote validation | |
* | |
* In Gravity Forms, for the text field you want to use as the license key entry, | |
* go to Advanced tab, check the "Allow field to be populated dynamically" checkbox, | |
* then enter the value as `edd-{download_id}`, where {download_id} is the, you guessed | |
* it, EDD Download ID. | |
* | |
* @param array $is_valid_and_form_array Gravity Forms passes an array with two keys: `is_valid` (boolean) and `form` (Gravity Forms form array) | |
* @return array Same format as incoming. |
<?php | |
/** | |
* Plugin Name: Name Of The Plugin | |
* Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates | |
* Description: A brief description of the Plugin. | |
* Version: The Plugin's Version Number, e.g.: 1.0 | |
* Author: Name Of The Plugin Author | |
* Author URI: http://URI_Of_The_Plugin_Author | |
* License: A "Slug" license name e.g. GPL2 | |
*/ |
/** | |
* Add a spam-trap to comment form and registration form | |
* | |
* Include a hidden field called name and set it to hidden. If it receives an input, we have a bot! | |
*/ | |
function get_decoy_fields() { | |
$decoys = array( 'firstname', 'lastname', 'email2', 'address', 'address2', 'city', 'state', 'zipcode', 'telephone', 'phone'); | |
return $decoys; | |
} | |
function get_dailyID() { |