What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-02-22 10:00:01
plugin custom code to install another plugin
// Include required libs for installation require_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); require_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); require_once( ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php' );... Add solution -
Other 2022-02-19 22:00:13
taggeddocument gensim example
def test_mixed_tag_types(self): """Ensure alternating int/string tags don't share indexes in doctag_syn0""" mixed_tag_corpus = [doc2vec.TaggedDocument(words, [i, words[0]]) for ... Add solution -
Other 2022-02-18 12:45:10
Show all the tags
$tags = get_tags(); $html = '<div class="post_tags">'; foreach ( $tags as $tag ) { $tag_link = get_tag_link( $tag->term_id ); &... Add solution -
Javascript 2022-02-17 15:50:02
wordpress use jquery in functions.php
I know what you mean about the tutorials. Here's how I do it: First you need to write your script. In your theme folder create a folder called something like 'js'. Create a file in that folder for your javascript. E.g. your-script.js. Add your jQuery scr... Add solution -
PHP 2022-02-15 04:05:33
hide category menu from custom post type
<?php function by_remove_menu_pages() { // remove testimonials menu section // remove_menu_page( 'edit.php?post_type=testimonials-widget' ); // remove categories remove_submenu_page( 'edit.php?post_type=testimonials-widget', 'edit-tags.php?taxonom... Add solution -
Other 2022-02-14 02:30:06
how to add bootstrap modal for video on page load
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=... Add solution -
PHP 2022-02-13 17:50:10
auto generate table of contents php
<?php function TableOfContents($depth) /*AutoTOC function written by Alex Freeman * Released under CC-by-sa 3.0 license * http://www.10stripe.com/ */ { $filename = __FILE__; //read in the file $file = fopen($filename,"r"); $html_str... Add solution