This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'uncode_wpml_object_id', 'uncode_wpml_object_id', 5 ); | |
function uncode_wpml_object_id( $post_id ) { | |
if ( did_action( 'wpml_loaded' ) ) { | |
$post_type = get_post_type( $post_id ); | |
$wpml_setting = apply_filters( 'wpml_setting', array(), 'custom_posts_sync_option' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Register Book post type | |
Version: 0.1 | |
*/ | |
add_action( 'init', 'codex_book_init' ); | |
/** | |
* Register a book post type. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Enhanced Media Library and WPML | |
Description: Synchronizes terms | |
Version: 0.0.1 | |
*/ | |
add_action( 'set_object_terms', 'wpml_eml_sync_terms', 10, 6 ); | |
function wpml_eml_sync_terms( $object_id, $terms, $tt_ids, $taxonomy, $append, $old_tt_ids ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! function_exists( 'uncode_most_recommended_posts' ) ) { | |
function uncode_most_recommended_posts( $numberOf, $before, $after, $show_count, $post_type = "post", $raw = false ) { | |
$args = array( | |
'post_type' => $post_type, | |
'post_status' => 'publish', | |
'posts_per_page' => $numberOf, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Compress JPEG & PNG images and WPML | |
Description: Synchronizes localized images | |
Version: 0.0.2 | |
*/ | |
add_action( 'updated_tiny_postmeta', 'wpml_updated_tiny_postmeta', 10, 3 ); | |
function wpml_updated_tiny_postmeta( $post_id, $meta_key, $meta_value ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: WPTouch and WPML | |
Version: 0.1 | |
Description: Applies fixes. | |
*/ | |
add_filter( 'foundation_is_custom_latest_posts_page', 'wpml_wptouch_is_custom_latest_posts_page_filter' ); | |
function wpml_wptouch_is_custom_latest_posts_page_filter( $true, $latest_posts_page_id, $current_page_id ){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Relevanssi and WPML | |
Version: 0.1 | |
Description: Applies fixes. | |
*/ | |
add_action( 'wp_ajax_relevanssi_index_posts', 'relevanssi_wpml_remove_filters', 5 ); | |
add_action( 'wp_ajax_relevanssi_index_taxonomies', 'relevanssi_wpml_remove_filters', 5 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: All In One SEO Pack and WPML | |
Version: 0.1 | |
Description: Applies fixes. | |
*/ | |
add_action( 'wpml_loaded', 'wpml_aioseop_init' ); | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: GeneratePress and WPML | |
Version: 0.1 | |
Description: Applies fixes. | |
*/ | |
add_filter( 'generate_hook_element_display', 'wpml_generate_hook_element_display_filter', 10, 2 ); | |
function wpml_generate_hook_element_display_filter( $display, $post_id ) { |
NewerOlder