Skip to content

Instantly share code, notes, and snippets.

View anoopranawat's full-sized avatar

Anoop anoopranawat

View GitHub Profile
@anoopranawat
anoopranawat / portfolio-custom-design.php
Last active January 22, 2018 07:48
Add Custom Design to Portfolio and Projects Plugin
<?php
/**
* Filter to add custom design in Portfolio Plugin
*/
function wpos_wp_pap_pro_slider_custom_designs( $design_arr ) {
$design_arr['custom-1'] = __('Custom Design 1', 'portfolio-and-projects'),
return $design_arr;
}
@anoopranawat
anoopranawat / pw-team-showcase-extra-social-service.php
Created January 22, 2018 13:27
PowerPack - Team Showcase Extra Social Service
<?php
/**
* Filter to add extra social service to Team Showcase
*/
function pwpc_ts_add_social_scrvices( $services_arr ) {
$services_arr['phone'] = array(
'name' => __('Phone', 'pwpc'),
'desc' => __('Enter phone number.', 'pwpc'),
'icon' => 'fa fa-phone'
@anoopranawat
anoopranawat / fcasp-pro-post-args.php
Created February 19, 2018 10:53
Make WP Featured Content and Slider Pro post type publically true with permalink
<?php
/* Function to modify 'WP Featured Content and Slider Pro' Post agrs */
function wpos_fcasp_modify_post_args( $post_args ) {
$post_args['public'] = true;
$post_args['rewrite'] = true;
return $post_args;
}
add_filter( 'wp_fcasp_post_type_args', 'wpos_fcasp_modify_post_args' );
@anoopranawat
anoopranawat / wprpsp-carousel-custom-design.php
Created February 24, 2018 06:18
Add Custom Design to WP Responsive Recent Post Slider Pro Plugin for Carousel Sllider
@anoopranawat
anoopranawat / vgp-pro-post-args.php
Created March 19, 2018 06:15
Make Video gallery and Player Pro post type publicly visible with permalink
<?php
/* Function to modify 'Video gallery and Player Pro' Post agrs */
function wpos_vgp_modify_post_args( $post_args ) {
$post_args['public'] = true;
$post_args['rewrite'] = true;
return $post_args;
}
add_filter( 'wp_vgp_post_type_args', 'wpos_vgp_modify_post_args' );