Skip to content

Instantly share code, notes, and snippets.

@yawalkar
Created January 24, 2018 15:37
Show Gist options
  • Save yawalkar/117ffe6bdcc1d1189239f2e16db482be to your computer and use it in GitHub Desktop.
Save yawalkar/117ffe6bdcc1d1189239f2e16db482be to your computer and use it in GitHub Desktop.
Avada Portfolio Filters. Change portfolio labels on single portfolio with these filters.
// Project Description.
add_filter( 'fusion_portfolio_post_project_description_label', 'fusion_portfolio_post_project_description_label_change', 99, 4 );
function fusion_portfolio_post_project_description_label_change( $project_desc_html, $project_desc_title, $project_desc_title_style, $project_desc_tag ) {
return '<' . $project_desc_tag . ' style="' . esc_attr__( $project_desc_title_style ) . '">' . esc_html__( 'Project Description New Text', 'fusion-core' ) . '</' . $project_desc_tag . '>';
}
// Project Details.
add_filter( 'fusion_portfolio_post_project_details_label', 'fusion_portfolio_post_project_details_label_change', 99, 3 );
function fusion_portfolio_post_project_details_label_change( $project_details_html, $project_details_title, $project_details_tag ) {
return '<' . $project_details_tag . '>' . esc_html__( 'Project Details New Text', 'fusion-core' ) . '</' . $project_details_tag . '>';
}
// Skills Needed.
add_filter( 'fusion_portfolio_post_skills_label', 'fusion_portfolio_post_project_skills_label_change', 99, 3 );
function fusion_portfolio_post_project_skills_label_change( $project_skills_html, $project_skills_title, $project_skills_tag ) {
return '<' . $project_skills_tag . '>' . esc_html__( 'Skills New Text', 'fusion-core' ) . '</' . $project_skills_tag . '>';
}
// Categories.
add_filter( 'fusion_portfolio_post_categories_label', 'fusion_portfolio_post_project_categories_label_change', 99, 3 );
function fusion_portfolio_post_project_categories_label_change( $project_categories_html, $project_categories_title, $project_categories_tag ) {
return '<' . $project_categories_tag . '>' . esc_html__( 'Categories New Text', 'fusion-core' ) . '</' . $project_categories_tag . '>';
}
// Tags.
add_filter( 'fusion_portfolio_post_tags_label', 'fusion_portfolio_post_project_tags_label_change', 99, 3 );
function fusion_portfolio_post_project_tags_label_change( $project_tags_html, $project_tags_title, $project_tags_tag ) {
return '<' . $project_tags_tag . '>' . esc_html__( 'Tags New Text', 'fusion-core' ) . '</' . $project_tags_tag . '>';
}
// Project URL.
add_filter( 'fusion_portfolio_post_project_url_label', 'fusion_portfolio_post_project_project_url_label_change', 99, 3 );
function fusion_portfolio_post_project_project_url_label_change( $project_project_url_html, $project_project_url_title, $project_project_url_tag ) {
return '<' . $project_project_url_tag . '>' . esc_html__( 'Project Url Text', 'fusion-core' ) . '</' . $project_project_url_tag . '>';
}
// Copyright.
add_filter( 'fusion_portfolio_post_copyright_label', 'fusion_portfolio_post_project_copyright_label_change', 99, 3 );
function fusion_portfolio_post_project_copyright_label_change( $project_copyright_html, $project_copyright_title, $project_copyright_tag ) {
return '<' . $project_copyright_tag . '>' . esc_html__( 'Copyright New Text', 'fusion-core' ) . '</' . $project_copyright_tag . '>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment