Skip to content

Instantly share code, notes, and snippets.

View webclinic017's full-sized avatar
💭
I may be slow to respond.

WebClinic webclinic017

💭
I may be slow to respond.
View GitHub Profile
@webclinic017
webclinic017 / editors-widget-menus.php
Created May 15, 2020 19:47 — forked from wpmark/editors-widget-menus.php
Allow WordPress Editors Access to Widgets and Menus
<?php
/***************************************************************
* Function pxlcore_give_edit_theme_options()
* Adds widgets and menus to editors.
***************************************************************/
function pxlcore_give_edit_theme_options( $caps ) {
/* check if the user has the edit_pages capability */
if( ! empty( $caps[ 'edit_pages' ] ) ) {
<?php
/**
* Catch php output buffering data over jQuery AJAX
*
* @author: Sohel Rana (me.sohelrana@gmail.com)
* @author url: https://blog.sohelrana.me
* @link: https://blog.sohelrana.me/catch-php-output-buffering-data-jquery-ajax/
* @licence MIT
*/