wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder-layouts.php
/**
		 * Add custom link actions in post / page rows
		 *
		 * @access public
		 * @param array $actions
		 * @return array
		 */
Add custom link actions in post / page rows
@access public
@param array $actions
@return array
Add custom link actions in post / page rows @access public @param array $actions @return array
public function row_actions( $actions ) {
			global $post;
			$post_type = get_post_type();
			$builder_link = sprintf( '<a href="%s" target="_blank">%s</a>', esc_url( get_permalink( $post->ID ) . '#builder_active' ), __( 'Themify Builder', 'themify' ) );
			if (self::$layout_slug=== $post_type || self::$layout_part_slug === $post_type ) {
				$actions['themify-builder-duplicate'] = sprintf( '<a href="%s">%s</a>', wp_nonce_url( admin_url( 'post.php?post=' . $post->ID . '&action=duplicate_tbuilder' ), 'duplicate_themify_builder' ), __( 'Duplicate', 'themify' ) );
				$actions['tbuilder-export'] = sprintf( '<a href="%s">%s</a>', wp_nonce_url( admin_url( 'post.php?post=' . $post->ID . '&action=tbuilder_export' ), 'tbuilder_layout_export' ), __( 'Export', 'themify' ) );
				$actions['themify-builder'] = $builder_link;
			} else {
				$registered_post_types = themify_post_types();
				if ( in_array( $post_type, $registered_post_types, true ) )
					$actions['themify-builder'] = $builder_link;
			}
			return $actions;
		}
public function row_actions ( $ actions ) { global $ post ; $ post_type = get_post_type ( ) ; $ builder_link = sprintf ( '<a href="%s" target="_blank">%s</a>' , esc_url ( get_permalink ( $ post -> ID ) . '#builder_active' ) , __ ( 'Themify Builder' , 'themify' ) ) ; if ( self :: $ layout_slug === $ post_type || self :: $ layout_part_slug === $ post_type ) { $ actions [ 'themify-builder-duplicate' ] = sprintf ( '<a href="%s">%s</a>' , wp_nonce_url ( admin_url ( 'post.php?post=' . $ post -> ID . '&action=duplicate_tbuilder' ) , 'duplicate_themify_builder' ) , __ ( 'Duplicate' , 'themify' ) ) ; $ actions [ 'tbuilder-export' ] = sprintf ( '<a href="%s">%s</a>' , wp_nonce_url ( admin_url ( 'post.php?post=' . $ post -> ID . '&action=tbuilder_export' ) , 'tbuilder_layout_export' ) , __ ( 'Export' , 'themify' ) ) ; $ actions [ 'themify-builder' ] = $ builder_link ; } else { $ registered_post_types = themify_post_types ( ) ; if ( in_array ( $ post_type , $ registered_post_types , true ) ) $ actions [ 'themify-builder' ] = $ builder_link ; } return $ actions ; }
Add custom link actions in post / page rows
 @access public
 @param array $actions
 @return array
Add custom link actions in post / page rows @access public @param array $actions @return array
// print builder links on another post types