The following code goes into the functions.php file:
// Create A Somple Product Catalog width Wordpress. ali.md/pcwp
// Step One: Create the custom post type
<?php | |
add_filter( 'gravityflow_columns_status_table', 'custom_column_titles', 10, 3 ); | |
function custom_column_titles( $columns, $args, $table ) { | |
$new_column = array( | |
'user_action' => 'User Action', | |
); | |
$pre_columns = array_slice( $columns, 0, 2 ); | |
$post_columns = array_slice( $columns, 2 ); | |
$columns = array_merge( $pre_columns, $new_column, $post_columns ); | |
return $columns; |
<?php | |
/** | |
* @package Kinsta_users | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: Kinsta users | |
Plugin URI: http://wordpress.org/extend/plugins/# | |
Description: This is an example plugin | |
Author: Carlo Daniele |
<div id="main-slider" class="carousel slide mt-4" data-ride="carousel"> | |
<?php $args = array( | |
'posts_per_page' => 5, | |
'tag' => 'slider' | |
); | |
$slider = new WP_Query($args); | |
if($slider->have_posts()): | |
$count = $slider->found_posts; | |
?> |
<?php | |
/** | |
* @package Food_example_plugin_2 | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: Food example plugin 2 | |
Plugin URI: http://wordpress.org/extend/plugins/# | |
Description: This is an example plugin for WPMU DEV readers | |
Author: Carlo Daniele |
<section id="team"> | |
<div class="container"> | |
<div class="row"> | |
<h1 class="title text-center wow fadeInDown" data-wow-duration="500ms" data-wow-delay="300ms">Meet the Team</h1> | |
<p class="text-center wow fadeInDown" data-wow-duration="400ms" data-wow-delay="400ms">Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. <br> | |
Ut enim ad minim veniam, quis nostrud </p> | |
<div id="team-carousel" class="carousel slide wow fadeIn" data-ride="carousel" data-wow-duration="400ms" data-wow-delay="400ms"> | |
<!-- Wrapper for slides --> | |
<div class="carousel-inner"> |
function get_all_fields($entry, $form) | |
{ | |
//only do this for a certain form (id 53 for example) | |
// if ($form["id"] == 17) | |
//{ | |
foreach($form["fields"] as &$field) | |
{ | |
//see if this is a multi-field, like name or address | |
if (is_array($field["inputs"])) |
<?php | |
# Register custom post types on the 'init' hook. | |
add_action( 'init', 'my_register_post_types' ); | |
/** | |
* Registers post types needed by the plugin. | |
* | |
* @since 1.0.0 | |
* @access public |
The following code goes into the functions.php file:
// Create A Somple Product Catalog width Wordpress. ali.md/pcwp
// Step One: Create the custom post type