If you want to get more from the menu item simply have a look at the $item object. i.e:
// Will return a large object with lots of props like title, url, description, id etc.
var_dump( $item );
| import urllib | |
| from wordpress_xmlrpc import Client, WordPressPost | |
| from wordpress_xmlrpc.methods import posts | |
| import xmlrpclib | |
| from wordpress_xmlrpc.compat import xmlrpc_client | |
| from wordpress_xmlrpc.methods import media, posts | |
| import os | |
| ########################### Read Me First ############################### | |
| ''' | |
| ------------------------------------------In DETAIL-------------------------------- |
firewall-cmd --permanent --add-service=http.firewall-cmd --reload.| # Read more about setting it up | |
| # https://medium.com/@ljmocic/make-telegram-bot-for-notifying-about-new-rss-feed-items-4cfbcc37f4fd | |
| from datetime import timedelta, datetime | |
| from dateutil import parser | |
| from pprint import pprint | |
| from time import sleep | |
| import requests | |
| import feedparser |
| <?php | |
| /** | |
| * Kindly provided by @notebleu on the Avada Community Forum | |
| * - https://theme-fusion.com/forums/topic/unnecessary-js-files-load-even-when-fusion-elements-disabled/#post-648617 | |
| */ | |
| function custom_disable_avada_js() { | |
| Fusion_Dynamic_JS::deregister_script('avada-comments'); | |
| Fusion_Dynamic_JS::deregister_script('avada-general-footer'); | |
| Fusion_Dynamic_JS::deregister_script('avada-mobile-image-hover'); |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| <?php | |
| add_filter( 'option_active_plugins', 'test_blacklist_unneeded_plugins', 40 ); | |
| function test_blacklist_unneeded_plugins( $plugins ) { | |
| // We don't apply blacklisting to logged in users to prevent plugin deactivation | |
| if( isset( $_SERVER['HTTP_COOKIE'] ) && is_user_logged_muplugin() ) { | |
| return $plugins; | |
| } |
| import urllib | |
| from wordpress_xmlrpc import Client, WordPressPost | |
| from wordpress_xmlrpc.methods import posts | |
| import xmlrpclib | |
| from wordpress_xmlrpc.compat import xmlrpc_client | |
| from wordpress_xmlrpc.methods import media, posts | |
| import os | |
| ########################### Read Me First ############################### | |
| ''' | |
| ------------------------------------------In DETAIL-------------------------------- |
| <?php | |
| /** | |
| * @package active-plugins | |
| * @version 1.0 | |
| * | |
| * Plugin Name: Active Plugins | |
| * Plugin URI: http://wordpress.org/extend/plugins/# | |
| * Description: This is a development plugin | |
| * Author: Carlo Daniele | |
| * Version: 1.0 |
This gist is for showing an example of a custom wordpress menu.
If you want to get more from the menu item simply have a look at the $item object. i.e:
// Will return a large object with lots of props like title, url, description, id etc.
var_dump( $item );
This code works on Wordpress 4.1.1 as of 31st of March 2015